Package org.apache.wsif

Examples of org.apache.wsif.WSIFServiceFactory


            Definition def = WSIFUtils.readWSDL(null, wsdlLocation);

            Service service = WSIFUtils.selectService(def, serviceNS, serviceName);
            PortType portType = WSIFUtils.selectPortType(def, portTypeNS, portTypeName);

            WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
            WSIFService dpf = factory.getService(def, service, portType);
            WSIFPort port = (portName == null) ? dpf.getPort() : dpf.getPort(portName);

            // 1st a call that should work
            WSIFOperation op1 = port.createOperation("getQuote", inputName, outputName);
            WSIFMessage input1 = op1.createInputMessage();
View Full Code Here


            return;

        TestUtilities.setProviderForProtocol( protocol );

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

            return;

        TestUtilities.setProviderForProtocol( protocol );

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

            service.mapType(
View Full Code Here

    private static void init(String zip2geoWSDL,
           String addressbookWSDL,
           String serviceAvailabilityWSDL) throws Exception {
  // create a service factory
  WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
  // initialize the address book stub
  // parse the WSDL
  WSIFService service =
      factory.getService(addressbookWSDL,null,null,
             "http://wsifservice.addressbook/",
             "AddressBook");
  // create the stub
  addressBook = (AddressBook) service.getStub(AddressBook.class);
  // initialize the zip2geo stub
  // parse the WSDL
  service = factory.getService(zip2geoWSDL,null,null,"http://ws.cdyne.com",
             "Zip2GeoSoap");
  // map types
  service.mapType(new QName("http://ws.cdyne.com", "LatLongReturn"),
      Class.forName("complexsoap.client.stub.com.cdyne.ws.LatLongReturn"));
  // create the stub
  zip2geo = (Zip2GeoSoap) service.getStub(Zip2GeoSoap.class);
  // initialize the service availability stub
  // parse the WSDL
  service = factory.getService(serviceAvailabilityWSDL,null,null,
             "http://xml.apache.org/axis/wsif/samples/jms/ServiceAvailability",
             "CheckAvailabilityPortType");
  // create the stub
  serviceAvailability =
      (CheckAvailabilityPortType) service.getStub(CheckAvailabilityPortType.class);
View Full Code Here

                "Usage: java complexsoap.client.dynamic.Run <wsdl location> <zip code>");
            System.exit(1);
        }
       
        // create a service factory
        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
        WSIFService service =
            factory.getService(
                args[0],
                null,
                null,
                "http://ws.cdyne.com",
                "Zip2GeoSoap");
View Full Code Here

          endpoint = role.getMapping(instance, getTracingTag()).getEndpoint();
        }catch(Exception e){
          throw new UEngineException("Couldn't get the endpoint to invoke WS",e);
        }

        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

        WSIFService service = factory.getService(wsdlUrl, null, null,endpoint, null);

        WSIFPort port = service.getPort();

        WSIFOperation operation = port.createOperation(getOperationName());
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.