Package org.apache.wsif

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


         "\"" + fakeFile + "\"" );

      input = operation.createInputMessage();
      input.setName("GetQuoteInput");
      input.setObjectPart("symbol", "" );
      output = operation.createOutputMessage();

      //output = doAsyncOpNoHandler( operation, input, context );
      doSyncOp( operation, input, output, context );
     
      Object o;
View Full Code Here


            WSIFPort port = service.getPort(server+"Port");
            WSIFOperation op = port.createOperation("addEntry", "AddEntryWholeNameRequest", null);           
            doItPort(port, "WSIFPort_ApacheSOAP");
            WSIFOperation op2 = port.createOperation("addEntry", "AddEntryWholeNameRequest", null);
            WSIFMessage inputMessage = op2.createInputMessage();
            WSIFMessage outputMessage = op2.createOutputMessage();
            WSIFMessage faultMessage = op2.createFaultMessage();

            // Create a name and address to add to the addressbook
            String nameToAdd = "Chris P. Bacon";
            Address addressToAdd =
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";
View Full Code Here

    private void invokeOperation(WSIFPort port, String name, Object partVal)
        throws Exception {
        WSIFOperation operation = port.createOperation(name);

        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
        inputMessage.setObjectPart("dummy", partVal);

        boolean b =
            operation.executeRequestResponseOperation(
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

       throws WSIFException {
        
       WSIFOperation operation =
          port.createOperation("addEntry", "AddEntryWholeNameRequest", null);
       WSIFMessage inputMessage = operation.createInputMessage();
       WSIFMessage outputMessage = operation.createOutputMessage();
       WSIFMessage faultMessage = operation.createFaultMessage();

       if ( name != null ) {
          inputMessage.setObjectPart( "name", name );
       }
View Full Code Here

    private Address getAddress(WSIFPort port, String name)
       throws WSIFException {

       WSIFOperation operation = port.createOperation("getAddressFromName");
       WSIFMessage inputMessage = operation.createInputMessage();
       WSIFMessage outputMessage = operation.createOutputMessage();
       WSIFMessage faultMessage = operation.createFaultMessage();

       if ( name != null ) {
          inputMessage.setObjectPart( "name", name );
       }
View Full Code Here

            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();
            WSIFMessage output1 = op1.createOutputMessage();
            WSIFMessage fault1 = op1.createFaultMessage();
            input1.setObjectPart("symbol", "");
            boolean ok = op1.executeRequestResponseOperation(input1, output1, fault1);

            assertEquals("ok getQuote response", true, ok);
View Full Code Here

            assertEquals("getQuote value", -1.0F, q1, 0F);

            // now a call that is defined in WSDL but not on server
            op1 = port.createOperation("XXXgetQuote", inputName, outputName);
            input1 = op1.createInputMessage();
            output1 = op1.createOutputMessage();
            fault1 = op1.createFaultMessage();
            input1.setObjectPart("symbol", "");
            ok = op1.executeRequestResponseOperation(input1, output1, fault1);

            assertEquals("ok getQuote response", false, ok);
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

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.