Package org.jboss.ws.core.jaxrpc.client

Examples of org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService()


         assertTrue(javaWsdlMappingFile.exists());

         QName serviceName = new QName(TARGET_NAMESPACE, "TestService");
         ServiceFactoryImpl factory = new ServiceFactoryImpl();
         URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
         ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, javaWsdlMappingFile.toURL());
         endpoint = (JaxRpcTestService)service.getPort(JaxRpcTestService.class);
      }
   }

   public void testEchoString() throws Exception
View Full Code Here


         assertTrue(javaWsdlMappingFile.exists());

         ServiceFactoryImpl factory = new ServiceFactoryImpl();
         URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
         QName serviceName = new QName(TARGET_NAMESPACE, "TestService");
         ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, javaWsdlMappingFile.toURL());
         call = service.createCall();
      }
   }

   public void testEchoString() throws Exception
View Full Code Here

         assertTrue(javaWsdlMappingFile.exists());

         QName serviceName = new QName(TARGET_NAMESPACE, "TestService");
         ServiceFactoryImpl factory = new ServiceFactoryImpl();
         URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
         ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, javaWsdlMappingFile.toURL());
         port = (JaxRpcTestService)service.getPort(JaxRpcTestService.class);
      }
   }

   public void testEchoString() throws Exception
View Full Code Here

      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = new File("resources/jaxrpc/jbws1384/WEB-INF/wsdl/ExampleService.wsdl").toURL();
         URL mappingURL = new File("resources/jaxrpc/jbws1384/WEB-INF/jaxrpc-mapping.xml").toURL();
         QName serviceName = new QName("http://org.jboss.test.webservice/samples2", "Gasherbrum");
         Service service = factory.createService(wsdlURL, serviceName , mappingURL);
         port = (TransmulatorInterface)service.getPort(TransmulatorInterface.class);
         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1384");
      }
   }
View Full Code Here

   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124one/TestEndpoint?wsdl");
      URL mappingURL = new File("resources/jaxrpc/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
      QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
      Service service = factory.createService(wsdlURL, qname, mappingURL);
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
      assertEquals("jbws1124one", port.getResourceString());
   }

View Full Code Here

   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124two/TestEndpoint?wsdl");
      URL mappingURL = new File("resources/jaxrpc/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
      QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
      Service service = factory.createService(wsdlURL, qname, mappingURL);
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
      assertEquals("jbws1124two", port.getResourceString());
   }

}
View Full Code Here

   public void testStandardConfigConfiguredDII() throws Exception
   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
      QName qname = new QName("http://org.jboss.test.ws/jbws1653", "TestService");
      Service service = factory.createService(wsdlURL, qname);

      Call call = service.createCall();
      call.setOperationName(new QName("http://org.jboss.test.ws/jbws1653", "echoString"));

      call.setTargetEndpointAddress("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint");
View Full Code Here

   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
      URL mappingURL = new File("resources/jaxrpc/jbws1653/WEB-INF/jaxrpc-mapping.xml").toURL();
      QName qname = new QName("http://org.jboss.test.ws/jbws1653", "TestService");
      Service service = factory.createService(wsdlURL, qname, mappingURL);
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);

      String retStr = port.echoString("kermit");
      assertEquals("kermit", retStr);
      assertNull(ClientHandler.message);
View Full Code Here

      Thread.currentThread().setContextClassLoader(urlLoader);

      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
      QName qname = new QName("http://org.jboss.test.ws/jbws1653", "TestService");
      Service service = factory.createService(wsdlURL, qname);

      Call call = service.createCall();
      call.setOperationName(new QName("http://org.jboss.test.ws/jbws1653", "echoString"));

      call.setTargetEndpointAddress("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint");
View Full Code Here

      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
      URL mappingURL = new File("resources/jaxrpc/jbws1653/WEB-INF/jaxrpc-mapping.xml").toURL();
      QName qname = new QName("http://org.jboss.test.ws/jbws1653", "TestService");
      Service service = factory.createService(wsdlURL, qname, mappingURL);
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);

      try
      {
         String retStr = port.echoString("thefrog");
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.