Package org.apache.wsif

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/",
                   ">SingleTag"),
               SingleTag_ElemType.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "SingleTag"),
               SingleTag_Type.class );
            service.mapType(
               new javax.xml.namespace.QName(
                   "http://soapinterop.org/",
                   "SingleTagResponse"),
               SingleTagResponse.class );

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            SingleTag_ElemType stet = new SingleTag_ElemType();
            stet.setSingleTag(new SingleTag_Type());

            SingleTagResponse response = stub.singleTag(stet);
View Full Code Here


    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/",
                   ">SimpleDocument"),
               SimpleDocument_ElemType.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/",
                   "SimpleDocumentResponse"),
               SimpleDocumentResponse.class );

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            SimpleDocument_ElemType sdtet = new SimpleDocument_ElemType();
            SimpleDocument_Type sdt = new SimpleDocument_Type();
            sdt.setValue("petra");
            sdtet.setSimpleDocument(sdt);
View Full Code Here

    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 );

            Doc_TestPortType stub = (Doc_TestPortType) service.getStub(portName, Doc_TestPortType.class);

            ComplexDocument_ElemType cdtet = new ComplexDocument_ElemType();
            ComplexDocument_Type cdt = makeComplexDocument();
            checkComplexDocument(cdt);
            cdtet.setComplexDocument(cdt);
View Full Code Here

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://wsifservice.addressbook/",
          "AddressBook");

      service.mapType(
        new javax.xml.namespace.QName(
          "http://wsiftypes.addressbook/",
          "address"),
        Class.forName("addressbook.wsiftypes.Address"));

      service.mapType(
        new javax.xml.namespace.QName(
          "http://wsiftypes.addressbook/",
          "phone"),
        Class.forName("addressbook.wsiftypes.Phone"));

      WSIFPort port = service.getPort(portName);

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

      // Create the messages
View Full Code Here

    TestUtilities.setProviderForProtocol(protocol);

    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service =
        factory.getService(
          wsdlLocation,
          null,
          null,
          "http://wsifservice.addressbook/",
          "AddressBook");

      service.mapType(
        new javax.xml.namespace.QName(
          "http://wsiftypes.addressbook/",
          "address"),
        Class.forName("addressbook.wsiftypes.Address"));

      service.mapType(
        new javax.xml.namespace.QName(
          "http://wsiftypes.addressbook/",
          "phone"),
        Class.forName("addressbook.wsiftypes.Phone"));

      WSIFPort port =
        (portName == null)
          ? service.getPort()
          : service.getPort(portName);

      if (!port.supportsAsync()) {
        return;
      }
View Full Code Here

    TestUtilities.setProviderForProtocol(protocol);

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

      WSIFPort port = service.getPort(portName);
      WSIFOperation operation = port.createOperation("stringToDataHandler");
      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();
View Full Code Here

    TestUtilities.setProviderForProtocol(protocol);

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

      WSIFPort port = service.getPort(portName);
      WSIFOperation operation = port.createOperation("bounceImage4");
      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();
View Full Code Here

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

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

            // create the stub
            AddressBook stub =
                (AddressBook) service.getStub(AddressBook.class);

            // do the invocations
            addFirstAddress(stub);
            addSecondAddress(stub);
            queryAddresses(stub);
View Full Code Here

      System.exit(1);
  }
  // create a service factory
        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
 
  WSIFService service = factory.getService(args[0], null,
             null, "http://wsifservice.addressbook/",
             "AddressBook");
  // map types
  service.mapType(new QName("http://wsiftypes.addressbook/","Address"),
      Class.forName("ejb.service.addressbook.wsiftypes.Address"));
  service.mapType(new QName("http://wsiftypes.addressbook/","Phone"),
      Class.forName("ejb.service.addressbook.wsiftypes.Phone"));

  // get the port
  WSIFPort port = service.getPort();
  // add the first address
  addFirstAddress(port);
  // add the second address
  addSecondAddress(port);
  // query addresses
View Full Code Here

        TestUtilities.setProviderForProtocol( protocol );

        try {
            WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
            WSIFService service = factory.getService(wsdlLocation, null, // serviceNS
               null, // serviceName
               "http://wsifservice.addressbook/", // portTypeNS
               "AddressBook" ); // portTypeName

            AddressBook abStub = (AddressBook) service.getStub(portName, AddressBook.class);

            abStub.addEntry(name1, addr1);
            abStub.addEntry(firstName2, lastName2, addr2);

            Address resp1 = abStub.getAddressFromName(name1);
View Full Code Here

TOP

Related Classes of org.apache.wsif.WSIFService

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.