Examples of ServiceFactoryImpl


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

   public void setUp() throws Exception
   {
      if (port == null)
      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = new File("resources/jaxrpc/jbws1410/WEB-INF/wsdl/TestService.wsdl").toURL();
         URL mappingURL = new File("resources/jaxrpc/jbws1410/WEB-INF/jaxrpc-mapping.xml").toURL();
         QName serviceName = new QName("http://org.jboss.test.ws/jbws1410", "TestService");
         Service service = factory.createService(wsdlURL, serviceName, mappingURL);
         port = (TestEndpoint)service.getPort(TestEndpoint.class);
        
         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1410");
      }
   }
View Full Code Here

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

   {
      return new JBossWSTestSetup(MarshallRpcLitDIITestCase.class, "jaxrpc-marshall-rpclit.war") {
         protected void setUp() throws Exception
         {
            super.setUp();
            ServiceFactoryImpl factory = new ServiceFactoryImpl();
            service = factory.createService(new QName(TARGET_NAMESPACE, SERVICE_NAME));
         }
      };
   }
View Full Code Here

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

   protected void setUp() throws Exception
   {
      super.setUp();
      if (port == null)
      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = new File("resources/jaxrpc/jbws1427/META-INF/wsdl/ProcessClaim.wsdl").toURL();
         URL mappingURL = new File("resources/jaxrpc/jbws1427/META-INF/jaxrpc-mapping.xml").toURL();
         QName serviceName = new QName("http://za.co.testws.interfaces", "ProcessClaim");
         Service service = factory.createService(wsdlURL, serviceName , mappingURL);
         port = (RequestService)service.getPort(RequestService.class);
         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1427/SubmitRequestEJB");
      }
   }
View Full Code Here

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

   public void testClientProxy() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-wsdlpublish?wsdl");
      URL mappingURL = new File("resources/jaxrpc/wsdlpublish/WEB-INF/jaxrpc-mapping.xml").toURL();
      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 resStr = port.echoSimple(new File("wsdl-publish/some-wsdl-location/foo/bar/TestService.wsdl").getAbsolutePath());
      assertEquals("{http://org.jboss.test.ws/wsdlpublish}TestEndpoint", resStr);
View Full Code Here

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

   {
      return new JBossWSTestSetup(MarshallRpcLitDIITestCase.class, "jaxrpc-marshall-rpclit.war") {
         protected void setUp() throws Exception
         {
            super.setUp();
            ServiceFactoryImpl factory = new ServiceFactoryImpl();
            service = factory.createService(new QName(TARGET_NAMESPACE, SERVICE_NAME));
         }
      };
   }
View Full Code Here

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

      QName serviceName = new QName(NAMESPACE, "TestService");
      QName operationName = new QName(NAMESPACE, "echo");
      URL jaxrpcMapping = getResourceURL("jaxrpc/jbws1862/WEB-INF/jaxrpc-mapping.xml");
      URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");

      ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactoryImpl.newInstance();
      Service service = factory.createService(wsdlLocation, serviceName, jaxrpcMapping);

      Call call = (Call)service.createCall();
      call.setOperationName(operationName);
      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);
View Full Code Here

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

   protected void setUp() throws Exception
   {
      super.setUp();
      if (port == null)
      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = getResourceURL("jaxrpc/jbws1427/META-INF/wsdl/ProcessClaim.wsdl");
         URL mappingURL = getResourceURL("jaxrpc/jbws1427/META-INF/jaxrpc-mapping.xml");
         QName serviceName = new QName("http://za.co.testws.interfaces", "ProcessClaim");
         Service service = factory.createService(wsdlURL, serviceName , mappingURL);
         port = (RequestService)service.getPort(RequestService.class);
         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1427/SubmitRequestEJB");
      }
   }
View Full Code Here

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

   protected void setUp() throws Exception
   {
      super.setUp();
      if (port == null)
      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = getResourceURL("jaxrpc/jbws1386/WEB-INF/wsdl/TestService.wsdl");
         URL mappingURL = getResourceURL("jaxrpc/jbws1386/WEB-INF/jaxrpc-mapping.xml");
         QName serviceName = new QName("http://org.jboss.test.ws/jbws1386", "TestService");
         Service service = factory.createService(wsdlURL, serviceName , mappingURL);
         port = (RequestService)service.getPort(RequestService.class);
         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1386");
      }
   }
View Full Code Here

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

   protected void setUp() throws Exception
   {
      super.setUp();
      if (port == null)
      {
         ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
         URL wsdlURL = getResourceURL("jaxrpc/jbws956/WEB-INF/wsdl/TestService.wsdl");
         URL mappingURL = getResourceURL("jaxrpc/jbws956/WEB-INF/jaxrpc-mapping.xml");
         QName serviceName = new QName("http://org.jboss.test.ws/jbws956", "TestService");
         Service service = factory.createService(wsdlURL, serviceName, mappingURL);
         port = (TestEndpoint)service.getPort(TestEndpoint.class);
      }
   }
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.ServiceFactoryImpl

     */
    public void start( BundleContext context ) throws Exception {
        super.start(context);
        local = new CatalogImpl();
        catalogs = Collections.emptyList();
        serviceFactory = new ServiceFactoryImpl();
        resolveManager = new ResolveManager2();
       
        // ensure a preference store is around so we can save to it in the shutdown hook
        preferenceStore = new ScopedPreferenceStore(new InstanceScope(), getBundle().getSymbolicName());

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.