Package org.apache.wsif

Examples of org.apache.wsif.WSIFServiceFactory


            e.printStackTrace();
            fail( e.toString() );
        }

        // create a service factory
        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

        WSIFServiceImpl
                .setDynamicWSIFProvider( "http://schemas.xmlsoap.org/wsdl/ejoe/", new WSIFDynamicProvider_EJOE() );
        WSIFServiceImpl.addExtensionRegistry( new EJOEExtensionsRegistry() );

        try
        {
            WSIFService service = factory.getService( WSIFTest.class.getResource( "AddressBook.wsdl" ).toString(),
                                                      null, null, "http://wsifservice.addressbook/", "AddressBook" );

            // get the port
            port = service.getPort();
        }
View Full Code Here


                e.printStackTrace();
                fail( e.toString() );
            }

            // create a service factory
            WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

            WSIFServiceImpl.setDynamicWSIFProvider( "http://schemas.xmlsoap.org/wsdl/ejoe/",
                                                    new WSIFDynamicProvider_EJOE() );
            WSIFServiceImpl.addExtensionRegistry( new EJOEExtensionsRegistry() );

            try
            {
                WSIFService service = factory.getService( WSIFTypeTest.class.getResource( "SimpleTypes.wsdl" )
                        .toString(), null, null, "http://wsifservice.simpletypes/", "SimplePT" );

                // get the port
                port = service.getPort();
            }
View Full Code Here

                "Usage: java samples.java.client.dynamic.Run <wsdl location>");
            System.exit(1);
        }

        // create a service factory
        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
        WSIFService service =
            factory.getService(
                args[0],
                null,
                null,
                "http://wsifservice.addressbook/",
                "AddressBook");
View Full Code Here

                    "Usage: java localjava.client.stub.Run <wsdl location>");
                System.exit(1);
            }

            // create a service factory
            WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

            // parse WSDL
            WSIFService service =
                factory.getService(
                    args[0],
                    null,
                    null,
                    "http://wsifservice.addressbook/",
                    "AddressBook");
View Full Code Here

                String serviceName = resolveString(ref.get("serviceName"));
                String portTypeNS = resolveString(ref.get("portTypeNS"));
                String portTypeName = resolveString(ref.get("portTypeName"));

                if (wsdlLoc != null) {
                    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
                    WSIFService service =
                        factory.getService(wsdlLoc, serviceNS, serviceName, portTypeNS, portTypeName);
                    Trc.exit(service);
                    return service;
                }
            } else if (ref.getClassName().equals(WSIFServiceStubRef.class.getName())) {
                String wsdlLoc = resolveString(ref.get("wsdlLoc"));
                String serviceNS = resolveString(ref.get("serviceNS"));
                String serviceName = resolveString(ref.get("serviceName"));
                String portTypeNS = resolveString(ref.get("portTypeNS"));
                String portTypeName = resolveString(ref.get("portTypeName"));
                String preferredPort = resolveString(ref.get("preferredPort"));
                String className = resolveString(ref.get("className"));

                if (wsdlLoc != null) {
                    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
                    WSIFService service =
                        factory.getService(wsdlLoc, serviceNS, serviceName, portTypeNS, portTypeName);
                    Class iface =
                        Class.forName(className, true, Thread.currentThread().getContextClassLoader());
                    Object stub = service.getStub(preferredPort, iface);
                    Trc.exit(stub);
                    return stub;
View Full Code Here

        if (protocol.equals("axis"))
            WSIFPluggableProviders.overrideDefaultProvider(
                "http://schemas.xmlsoap.org/wsdl/soap/",
                new WSIFDynamicProvider_ApacheAxis());

        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
            WSIFService service = factory.getService(wsdlLocation, null, // serviceNS
        null, // serviceName
        "http://wsifservice.stockquote/", // portTypeNS
    "StockquotePT"); // portTypeName

        StockquotePT stub = null;
View Full Code Here

      return;

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");
View Full Code Here

      return;

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");
View Full Code Here

      return;

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");
View Full Code Here

      return;

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://soapinterop.org/",
          "Doc_TestPortType");
View Full Code Here

TOP

Related Classes of org.apache.wsif.WSIFServiceFactory

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.