Package org.apache.wsif

Examples of org.apache.wsif.WSIFOperation.createOutputMessage()


      WSIFPort port = service.getPort(portName);

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

      WSIFMessage inMsg = operation.createInputMessage();
      WSIFMessage outMsg = operation.createOutputMessage();
      WSIFMessage faultMsg = operation.createFaultMessage();
     
      String inputDocument =
        "<GetRatesXML xmlns=\"http/www.pointwsp.net/ws/finance\"/>";
View Full Code Here


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

      // Create the messages
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();
      WSIFMessage faultMessage = operation.createFaultMessage();

      // Set the name to find in the addressbook
      String nameToLookup = "Chris P. Bacon";
      inputMessage.setObjectPart("name", nameToLookup);
View Full Code Here

      // 1 async call

      WSIFMessage inMsg = op.createInputMessage();
      inMsg.setObjectPart("name", "fred");

      WSIFMessage outmsg = op.createOutputMessage();
      WSIFMessage faultMsg = op.createFaultMessage();

      WSIFMessage context = op.getContext();
      context.setObjectPart(
        WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
View Full Code Here

                    "Mime");

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

            String content = "The owl and the pussy cat went to sea in a beautiful pea-green boat,";

            String inputDoc =
View Full Code Here

                    "Mime");

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

            String inputDoc =
                  "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                  "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" +
View Full Code Here

  try {
      // create the operation
      WSIFOperation operation = port.createOperation("getAddressFromName");
      // create the input message associated with this operation
      WSIFMessage input = operation.createInputMessage();
      WSIFMessage output = operation.createOutputMessage();
      WSIFMessage fault = operation.createFaultMessage();
      // populate the input message
      input.setObjectPart("name","John Smith");
      // do the invocation
      System.out.println("Querying address for John Smith...");
View Full Code Here

      }
      // create the operation
      operation = port.createOperation("getAddressFromName");
      // create the input message associated with this operation
      input = operation.createInputMessage();
      output = operation.createOutputMessage();
      fault = operation.createFaultMessage();
      // populate the input message
      input.setObjectPart("name","Jane White");
      // do the invocation
      System.out.println("Querying address for Jane White...");
View Full Code Here

            WSIFOperation operation =
                port.createOperation("addEntry", "AddEntryWholeNameRequest", null);

            WSIFMessage inputMessage = operation.createInputMessage();
            WSIFMessage outputMessage = operation.createOutputMessage();
            WSIFMessage faultMessage = operation.createFaultMessage();

            // Create a name and address to add to the addressbook
            String nameToAdd = "Chris P. Bacon";
            Address addressToAdd =
View Full Code Here

            operation = port.createOperation("getAddressFromName");

            // Create the messages
            inputMessage = operation.createInputMessage();
            outputMessage = operation.createOutputMessage();
            faultMessage = operation.createFaultMessage();

            // Set the name to find in the addressbook
            String nameToLookup = "Chris P. Bacon";
            inputMessage.setObjectPart("name", nameToLookup);
View Full Code Here

            AsyncResponseHandler abHandler = new AsyncResponseHandler( 1 ); // 1 async call

            WSIFMessage inMsg = op.createInputMessage();
            inMsg.setObjectPart( "name", name );

            WSIFMessage outmsg = op.createOutputMessage();
            WSIFMessage faultMsg = op.createFaultMessage();

            WSIFMessage context = op.getContext();
            context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                                   TestUtilities.getWsifProperty("wsif.async.replytoq") );
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.