Examples of WSIFService


Examples of org.apache.wsif.WSIFService

    TestUtilities.setProviderForProtocol(protocol);

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

            service.mapPackage("http://soapinterop.org/", "interop.wsifserviceWrapped");

            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   ">ComplexDocument"),
               ComplexDocument_ElemType.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "ComplexDocument"),
               ComplexDocument_Type.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "ArrayOfSimpleDocument"),
               ArrayOfSimpleDocument.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "SimpleDocument"),
               SimpleDocument_Type.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "ChildDocument"),
               ChildDocument.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "ComplexDocumentResponse"),
               ComplexDocumentResponse.class );

      WSIFPort port = service.getPort(portName);

      WSIFOperation operation = port.createOperation("ComplexDocument");

      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
View Full Code Here

Examples of xsul.wsif.WSIFService

    private void init() throws ComponentException {
        logger.debug("wsdl: " + this.definitions.xmlStringPretty());
        this.component = WSComponentFactory.createComponent(this.definitions);

        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
        WSIFService service = factory.getService(WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(this.definitions));

        if (this.secureInvoker != null) {
            Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(this.secureInvoker);
            service.addLocalProvider(secureProvider);
        }

        this.client = WSIFRuntime.getDefault().newClientFor(service, null);
        // null selects the first port in the first service.
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.