Examples of JaxWsDynamicClientFactory


Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

            wsdlURL = new URL(args[0]);
        }
       
        System.out.println(wsdlURL);
       
        JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
        Client client = factory.createClient(wsdlURL.toExternalForm(), SERVICE_NAME);
        ClientImpl clientImpl = (ClientImpl) client;
        Endpoint endpoint = clientImpl.getEndpoint();
        ServiceInfo serviceInfo = endpoint.getService().getServiceInfos().get(0);
        QName bindingName = new QName("http://complex.demo.cxf.apache.org/", "ComplexImplServiceSoapBinding");
        BindingInfo binding = serviceInfo.getBinding(bindingName);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

        assertNotNull(ct);
    }
   
    @Test
    public void testDynamicClientExceptions() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL(ServerMisc.DOCLIT_CODEFIRST_URL + "?wsdl");
        Client client = dcf.createClient(wsdlURL);
        try {
            client.invoke("throwException", -2);
        } catch (Exception ex) {
            Object o = ex.getClass().getMethod("getFaultInfo").invoke(ex);
            assertNotNull(o);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

                   launchServer(ServerNoBodyParts.class, true));
    }
   
    @Test
    public void testInvocation() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL("http://localhost:9020/NoBodyParts/NoBodyPartsService?wsdl");
        Client client = dcf.createClient(wsdlURL);
        byte[] bucketOfBytes =
            IOUtils.readBytesFromStream(getClass().getResourceAsStream("/wsdl/no_body_parts.wsdl"));
        Operation1 parameters = new Operation1();
        parameters.setOptionString("opt-ion");
        parameters.setTargetType("tar-get");
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

            wsdlURL = new URL(args[0]);
        }
       
        System.out.println(wsdlURL);
       
        JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
        Client client = factory.createClient(wsdlURL.toExternalForm(), SERVICE_NAME);
        ClientImpl clientImpl = (ClientImpl) client;
        Endpoint endpoint = clientImpl.getEndpoint();
        ServiceInfo serviceInfo = endpoint.getService().getServiceInfos().get(0);
        QName bindingName = new QName("http://Company.com/Application",
            "Company_ESB_Application_Biztalk_AgentDetails_4405_AgentDetails_PrtSoap");
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

        assertNotNull(ct);
    }
   
    @Test
    public void testDynamicClientExceptions() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL(ServerMisc.DOCLIT_CODEFIRST_URL + "?wsdl");
        Client client = dcf.createClient(wsdlURL);
        try {
            client.invoke("throwException", -2);
        } catch (Exception ex) {
            Object o = ex.getClass().getMethod("getFaultInfo").invoke(ex);
            assertNotNull(o);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

        assertNotNull(ct);
    }
   
    @Test
    public void testDynamicClientExceptions() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL(ServerMisc.DOCLIT_CODEFIRST_URL + "?wsdl");
        Client client = dcf.createClient(wsdlURL);
        try {
            client.invoke("throwException", -2);
        } catch (Exception ex) {
            Object o = ex.getClass().getMethod("getFaultInfo").invoke(ex);
            assertNotNull(o);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

        assertNotNull(ct);
    }
   
    @Test
    public void testDynamicClientExceptions() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL(ServerMisc.DOCLIT_CODEFIRST_URL + "?wsdl");
        Client client = dcf.createClient(wsdlURL);
        try {
            client.invoke("throwException", -2);
        } catch (Exception ex) {
            Object o = ex.getClass().getMethod("getFaultInfo").invoke(ex);
            assertNotNull(o);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

        assertNotNull(ct);
    }
   
    @Test
    public void testDynamicClientExceptions() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL(ServerMisc.DOCLIT_CODEFIRST_URL + "?wsdl");
        Client client = dcf.createClient(wsdlURL);
        try {
            client.invoke("throwException", -2);
        } catch (Exception ex) {
            Object o = ex.getClass().getMethod("getFaultInfo").invoke(ex);
            assertNotNull(o);
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

    }
   
    //@org.junit.Ignore // until we sort out the wsdl4j problem.
    @Test
    public void testInvocation() throws Exception {
        JaxWsDynamicClientFactory dcf =
            JaxWsDynamicClientFactory.newInstance();
        URL wsdlURL = new URL("http://localhost:9020/NoBodyParts/NoBodyPartsService?wsdl");
        Client client = dcf.createClient(wsdlURL);
        byte[] bucketOfBytes =
            IOUtils.readBytesFromStream(getClass().getResourceAsStream("/wsdl/no_body_parts.wsdl"));
        Operation1 parameters = new Operation1();
        parameters.setOptionString("opt-ion");
        parameters.setTargetType("tar-get");
View Full Code Here

Examples of org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory

public class CxfWebServiceClient implements SyncWebServiceClient {

  protected Client client;
 
  public CxfWebServiceClient(String wsdl) {
    JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
    this.client = dcf.createClient(wsdl);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.