Package org.apache.wsif

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


        String position3 = "Position Three";

        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("mixMimeParts");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setObjectPart("position1", position1);
        in.setObjectPart("file1", dh1);
        in.setObjectPart("position2", position2);
        in.setObjectPart("file2", dh2);
View Full Code Here


            port.createOperation("echoFloat", "echoFloatRequest", "echoFloatResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoFloatRequest");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoFloatResponse");

        inputMessage.setObjectPart("inputFloat", new java.lang.Float(argInputFloat));

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
View Full Code Here

                "echoFloatArrayResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoFloatArrayRequest");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoFloatArrayResponse");

        inputMessage.setObjectPart("inputFloatArray", argInputFloatArray);

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
View Full Code Here

            port.createOperation("echoVoid", "echoVoidRequest", "echoVoidResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoVoidRequest");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoVoidResponse");

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

        port.close();
View Full Code Here

            port.createOperation("echoBase64", "echoBase64Request", "echoBase64Response");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoBase64Request");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoBase64Response");

        inputMessage.setObjectPart("inputBase64", argInputBase64);

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
View Full Code Here

            port.createOperation("echoDate", "echoDateRequest", "echoDateResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoDateRequest");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoDateResponse");

        inputMessage.setObjectPart("inputDate", argInputDate);

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
View Full Code Here

        /**********************************************************
         * Test calling a service that takes a char as an argument
         **********************************************************/
        operation = port.createOperation("setCharOperation");
        inputMessage = operation.createInputMessage();
        outputMessage = operation.createOutputMessage();
        faultMessage = operation.createFaultMessage();

        inputMessage.setObjectPart("in", "a");

        operationSucceeded =
View Full Code Here

                "echoHexBinaryResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
        inputMessage.setName("echoHexBinaryRequest");

        WSIFMessage outputMessage = operation.createOutputMessage();
        outputMessage.setName("echoHexBinaryResponse");

        inputMessage.setObjectPart("inputHexBinary", argInputHexBinary);

        operation.executeRequestResponseOperation(inputMessage, outputMessage, null);
View Full Code Here

        /**********************************************************
         * Test calling a service that returns a char
         **********************************************************/
        operation = port.createOperation("getCharOperation");
        inputMessage = operation.createInputMessage();
        outputMessage = operation.createOutputMessage();
        faultMessage = operation.createFaultMessage();

        inputMessage.setBooleanPart("in", true);

        operationSucceeded =
View Full Code Here

        System.out.println("HeadersTest executing getQuote for \"\"" + operationName);
        WSIFOperation operation =
            port.createOperation("getQuote", inputName, outputName);
        WSIFMessage input = operation.createInputMessage();
        WSIFMessage output = operation.createOutputMessage();
        WSIFMessage fault = operation.createFaultMessage();
        input.setObjectPart("symbol", "");

        // set a basic authentication header
        WSIFMessage headers = operation.getContext();
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.