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

Examples of org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl


      assertNull(ClientHandler.message);
   }

   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


      assertNull(ClientHandler.message);
   }

   public void testStandardConfigFullyConfiguredDII() throws Exception
   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
      URL mappingURL = getResourceURL("jaxrpc/jbws1653/WEB-INF/jaxrpc-mapping.xml");
      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);
      try
      {
         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

      };
     
      Thread.currentThread().setContextClassLoader(urlLoader);
      try
      {
         ServiceFactoryImpl factory = new ServiceFactoryImpl();
         URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws1653/TestEndpoint?wsdl");
         URL mappingURL = getResourceURL("jaxrpc/jbws1653/WEB-INF/jaxrpc-mapping.xml");
         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("thefrog");
         assertEquals("thefrog", retStr);
         assertEquals("thefrog", ClientHandler.message);
View Full Code Here

   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/" + getWSDLLocation());
      URL mappingURL = getResourceURL("jaxrpc/jbws1762/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws1762", "EJB2Bean");
     
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      ServiceImpl service = (ServiceImpl)factory.createService(wsdlURL, serviceName, mappingURL);
      this.ejb2Proxy = (EJB2Iface)service.getPort(EJB2Iface.class);
   }
View Full Code Here

   private POJOIface pojoProxy;

   @Override
   protected void setUp() throws Exception
   {
      ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/" + getWSDLLocation());
      URL mappingURL = getResourceURL("jaxrpc/jbws1762/WEB-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.ws/jbws1762", "POJOBean");

      Service service = factory.createService(wsdlURL, serviceName, mappingURL);
      this.pojoProxy = (POJOIface)service.getPort(POJOIface.class);
   }
View Full Code Here

      {
         File javaWsdlMappingFile = getResourceFile("jaxrpc/samples/jsr109ejb/rpclit/META-INF/jaxrpc-mapping.xml");
         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);
      }
   }
View Full Code Here

   }

   private void sendMessage()
      throws ServiceException, MalformedURLException, RemoteException
   {
      ServiceFactoryImpl factory = (ServiceFactoryImpl) ServiceFactory.newInstance();

      URL wsdlLocation = new URL("http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl");
      QName serviceName = new QName("http://endpoint.webservices.jms.example.jboss.org/", "JMSSampleService");

      File fileMapping = new File("./output/client/jaxrpc-mapping.xml");

      ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, fileMapping.toURL());

      JMSSample proxy = (JMSSample)service.getPort(JMSSample.class);

      proxy.sendMessage(getDestinationJNDIName(), MESSAGE_TEXT);
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl

Copyright © 2018 www.massapicom. 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.