Package org.apache.wsif

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


            // populate the input message
            input.setObjectPart( "name", "John Smith" );

            // do the invocation
            System.out.println( "Querying address for John Smith..." );
            if ( operation.executeRequestResponseOperation( input, output, fault ) )
            {
                // invocation succeeded
                // extract the address from the output message
                Address address = (Address) output.getObjectPart( "address" );
                assertNotNull( address );
View Full Code Here


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

        assertTrue( operation.executeRequestResponseOperation( inputMessage, outputMessage, faultMessage ) );

        result = outputMessage.getObjectPart( "return" );
        assertNotNull( result );

        return result;
View Full Code Here

            // populate the input message
            input.setObjectPart("name", "John Smith");

            // do the invocation
            System.out.println("Querying address for John Smith...");
            if (operation.executeRequestResponseOperation(input, output, fault)) {
                // invocation succeeded
                // extract the address from the output message
                Address address = (Address) output.getObjectPart("address");
                System.out.println("Service returned the following address:");
                System.out.println(
View Full Code Here

            // populate the input message
            input.setObjectPart("name", "Jane White");
            // do the invocation
            System.out.println("Querying address for Jane White...");
            if (operation.executeRequestResponseOperation(input, output, fault)) {
                // invocation succeeded
                // extract the address from the output message
                Address address = (Address) output.getObjectPart("address");
                System.out.println("Service returned the following address:");
                System.out.println(
View Full Code Here

            Object body = getBody(in);
            marshaler.fromNMS(operationInfo, inMessage, in, body);

            WSIFMessage outMessage = operation.createInputMessage();
            WSIFMessage faultMessage = operation.createInputMessage();
            boolean answer = operation.executeRequestResponseOperation(inMessage, outMessage, faultMessage);
            if (answer) {
                marshaler.toNMS(exchange, out, operationInfo, outMessage);
            }
            else {
                Fault fault = exchange.createFault();
View Full Code Here

        if (output == null)
            wsifOperation.executeInputOnlyOperation(wsifInputMessage);
        else {
            boolean success =
                wsifOperation.executeRequestResponseOperation(
                    wsifInputMessage,
                    wsifOutputMessage,
                    wsifFaultMessage);
            if (!success) {
                StringBuffer sb = new StringBuffer();
View Full Code Here

      WSIFOperation operation = port.createOperation(GET_PORTTYPES_OPERATION);
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();
      inputMessage.setObjectPart(QUERY_STRING_PART, queryString);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      PortTypeArray portTypeArray = (PortTypeArray) outputMessage.getObjectPart(RESULT_PART);

      port.close();
      return portTypeArray;
View Full Code Here

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

      inputMessage.setObjectPart(PORT_TYPE_SELECTION_PART, portTypeSelection);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      ImportDefinition importDefinition = (ImportDefinition) outputMessage.getObjectPart(RESULT_PART);
      port.close();

      return importDefinition;
View Full Code Here

      WSIFOperation operation = port.createOperation(GET_RAW_EIS_METADATA_OPERATION);
      WSIFMessage inputMessage = operation.createInputMessage();
      WSIFMessage outputMessage = operation.createOutputMessage();
      inputMessage.setObjectPart(QUERY_STRING_PART, queryString);

      operation.executeRequestResponseOperation(inputMessage, outputMessage, null);

      byte[] byteArray = (byte[]) outputMessage.getObjectPart(RESULT_PART);

      port.close();
      return byteArray;
View Full Code Here

            SingleTag_Type stt = new SingleTag_Type();
      inMsg.setObjectPart("SingleTag", stt);

      boolean ok =
        operation.executeRequestResponseOperation(
          inMsg,
          outMsg,
          faultMsg);

      assertTrue("operation returned false!!", ok);
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.