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

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


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


   public void testDynamicProxy() throws Exception
   {
      URL wsdlURL = getResourceURL("jaxrpc/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl");
      URL mappingURL = getResourceURL("jaxrpc/samples/serviceref/META-INF/jaxrpc-mapping.xml");
      QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, qname, mappingURL);
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);

      String helloWorld = "Hello World!";
      Object retObj = port.echo(helloWorld);
      assertEquals(helloWorld, retObj);
View Full Code Here

      return new JBossWSTestSetup(RpcDIIUnconfiguredCallTestCase.class, "jaxrpc-samples-jsr109pojo-rpc.war");
   }

   public void testEchoString() throws Exception
   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      Service service = factory.createService(new QName("ANY_SERVICE_NAME"));

      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "echoString"));
      call.addParameter("String_1", Constants.TYPE_LITERAL_STRING, ParameterMode.IN);
      call.addParameter("String_2", Constants.TYPE_LITERAL_STRING, ParameterMode.IN);
View Full Code Here

      assertEquals(0, outParams.size());
   }

   public void testEchoSimpleUserType() throws Exception
   {
      ServiceFactoryImpl factory = new ServiceFactoryImpl();
      Service service = factory.createService(new QName("ANY_SERVICE_NAME"));

      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "echoSimpleUserType"));
      call.addParameter("String_1", Constants.TYPE_LITERAL_STRING, ParameterMode.IN);
      call.addParameter("SimpleUserType_2", new QName(TARGET_NAMESPACE, "SimpleUserType"), SimpleUserType.class, ParameterMode.IN);
View Full Code Here

   public void testNone() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-jbws165-jaxrpc-jbws165-none/HelloNone?wsdl");
      URL mappingURL = getResourceURL("jaxrpc/jbws165/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws165", "HelloServiceNone");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
      Hello port = (Hello) service.getPort(Hello.class);
      String retObj = port.hello(getName());
      assertEquals(getName(), retObj);
   }
View Full Code Here

   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/Explicit/Path/HelloPCOne?wsdl");
     
      URL mappingURL = getResourceURL("jaxrpc/jbws165/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws165", "HelloServicePcURI");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
      QName portName = new QName("http://org.jboss.test.webservice/jbws165", "HelloPortOne");
      Hello port = (Hello) service.getPort(portName, Hello.class);
      String retObj = port.hello(getName());
      assertEquals(getName(), retObj);
   }
View Full Code Here

   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/Explicit/Path/HelloPCTwo?wsdl");
     
      URL mappingURL = getResourceURL("jaxrpc/jbws165/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws165", "HelloServicePcURI");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
      QName portName = new QName("http://org.jboss.test.webservice/jbws165", "HelloPortTwo");
      Hello port = (Hello) service.getPort(portName, Hello.class);
      String retObj = port.hello(getName());
      assertEquals(getName(), retObj);
   }
View Full Code Here

   public void testContextRoot() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/Explicit/Context/HelloContextRoot?wsdl");
      URL mappingURL = getResourceURL("jaxrpc/jbws165/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws165", "HelloServiceCtxRoot");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
      Hello port = (Hello) service.getPort(Hello.class);
      String retObj = port.hello(getName());
      assertEquals(getName(), retObj);
   }
View Full Code Here

   public void testBoth() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/Explicit/Both/Explicit/Path?wsdl");
      URL mappingURL = getResourceURL("jaxrpc/jbws165/META-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.webservice/jbws165", "HelloServiceBoth");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
      Hello port = (Hello) service.getPort(Hello.class);
      String retObj = port.hello(getName());
      assertEquals(getName(), retObj);
   }
View Full Code Here

   public void testClientProxy() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-wsdlpublish?wsdl");
      URL mappingURL = getResourceURL("jaxrpc/wsdlpublish/WEB-INF/jaxrpc-mapping.xml");
      QName serviceName = new QName("http://org.jboss.test.ws/wsdlpublish", "TestService");
      Service service = new ServiceFactoryImpl().createService(wsdlURL, serviceName, mappingURL);
     
      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
     
      String dir = System.getProperty("wsdl.publish.location");
      String resStr = port.echoSimple(new File(dir + "/some-wsdl-location/foo/bar/TestService.wsdl").getAbsolutePath());
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.