Package org.apache.wsif

Examples of org.apache.wsif.WSIFPort.createOperation()


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

        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", "");
View Full Code Here


        }

        // do it agian without context so you can see the difference
        System.out.println(
            "HeadersTest no headers executing getQuote for \"\"" + operationName);
        operation = port.createOperation("getQuote", inputName, outputName);
        input = operation.createInputMessage();
        output = operation.createOutputMessage();
        fault = operation.createFaultMessage();
        input.setObjectPart("symbol", "");
        ok = operation.executeRequestResponseOperation(input, output, fault);
View Full Code Here

        boolean operationSucceeded;

        /**********************************************************
         * 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");
View Full Code Here

    public java.lang.String echoString(java.lang.String argInputString)
        throws WSIFException {

        WSIFPort port = this.svc.getPort();

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

        WSIFMessage inputMessage = operation.createInputMessage();

        WSIFMessage outputMessage = operation.createOutputMessage();
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);
View Full Code Here

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

    String[][] sa = new String[][] {{"a", "b"},{"d", "e", "g"}};
View Full Code Here

        throws WSIFException {

        WSIFPort port = this.svc.getPort();

        WSIFOperation operation =
            port.createOperation(
                "echoStringArray",
                "echoStringArrayRequest",
                "echoStringArrayResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
View Full Code Here

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

    inputMessage.setBooleanPart("in", true);
View Full Code Here

    public int echoInteger(int argInputInteger) throws WSIFException {

        WSIFPort port = this.svc.getPort();

        WSIFOperation operation =
            port.createOperation(
                "echoInteger",
                "echoIntegerRequest",
                "echoIntegerResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
View Full Code Here

        throws WSIFException {

        WSIFPort port = this.svc.getPort();

        WSIFOperation operation =
            port.createOperation(
                "echoIntegerArray",
                "echoIntegerArrayRequest",
                "echoIntegerArrayResponse");

        WSIFMessage inputMessage = operation.createInputMessage();
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.