Examples of WSIFMessage


Examples of com.volantis.wsif.WSIFMessage

        String outputName = (wsdlOutput.getName() == null) ? null :
                wsdlOutput.getName();

        WSIFOperation wsifOperation =
                wsifPort.createOperation(operationName, inputName, outputName);
        WSIFMessage input = wsifOperation.createInputMessage();
        WSIFMessage output = wsifOperation.createOutputMessage();
        WSIFMessage fault = wsifOperation.createFaultMessage();

        initializeInputParts(wsdlInput.getMessage(), message, input);

        createTypeMappings(input, output, wsifService, wsifOperation);
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

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

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

Examples of org.apache.wsif.WSIFMessage

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

            assertNotNull( operation );

            // create the input message associated with this operation
            WSIFMessage input = operation.createInputMessage();

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

            // create an address object to populate the input
            Address address = new Address();
            address.setStreetNum( 20 );
            address.setStreetName( "Peachtree Avenue" );
            address.setCity( "Atlanta" );
            address.setState( "GA" );
            address.setZip( 39892 );
            Phone phone = new Phone();
            phone.setAreaCode( 701 );
            phone.setExchange( "555" );
            phone.setNumber( "8721" );
            address.setPhoneNumber( phone );

            input.setObjectPart( "address", address );

            // do the invocation
            System.out.println( "Adding address for John Smith..." );
            operation.executeInputOnlyOperation( input );
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

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

            assertNotNull( operation );

            // 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
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

                    "addEntry",
                    "AddEntryWholeNameRequest",
                    null);
                   
            // create the input message associated with this operation
            WSIFMessage input = operation.createInputMessage();

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

            // create an address object to populate the input
            Address address = new Address();
            address.setStreetNum(25);
            address.setStreetName("Willow Road");
            address.setCity("MyTown");
            address.setState("PA");
            address.setZip(28382);
            Phone phone = new Phone();
            phone.setAreaCode(288);
            phone.setExchange("555");
            phone.setNumber("9891");
            address.setPhoneNumber(phone);

            input.setObjectPart("address", address);

            // do the invocation
            System.out.println("Adding address for John Smith...");
            operation.executeInputOnlyOperation(input);
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

                    "addEntry",
                    "AddEntryFirstAndLastNamesRequest",
                    null);

            // create the input message associated with this operation
            WSIFMessage input = operation.createInputMessage();

            // populate the input message
            input.setObjectPart("firstName", "Jane");
            input.setObjectPart("lastName", "White");

            // create an address object to populate the input
            Address address = new Address();
            address.setStreetNum(20);
            address.setStreetName("Peachtree Avenue");
            address.setCity("Atlanta");
            address.setState("GA");
            address.setZip(39892);
            Phone phone = new Phone();
            phone.setAreaCode(701);
            phone.setExchange("555");
            phone.setNumber("8721");
            address.setPhoneNumber(phone);

            input.setObjectPart("address", address);

            // do the invocation
            System.out.println("Adding address for Jane White...");
            operation.executeInputOnlyOperation(input);
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

            // 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
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    //-------------------------------------------------------------------------
    protected void process(MessageExchange exchange, NormalizedMessage normalizedMessage) throws MessagingException {
        try {
            WSIFOperationInfo operationInfo = operationMap.getOperationForExchange(exchange);
            WSIFOperation operation = operationInfo.getWsifOperation();
            WSIFMessage message = operation.createInputMessage();
            marshaler.fromNMS(operationInfo, message, normalizedMessage, getBody(normalizedMessage));
            operation.executeInputOnlyOperation(message);
            done(exchange);
        }
        catch (WSIFException e) {
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out) throws MessagingException {
        try {
            WSIFOperationInfo operationInfo = operationMap.getOperationForExchange(exchange);

            WSIFOperation operation = operationInfo.getWsifOperation();
            WSIFMessage inMessage = operation.createInputMessage();
            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 {
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

  public void fireAsyncResponse(Object response) throws WSIFException {
    Trc.entry(this, response);

    // use processAsyncResponse
    // **NS
    WSIFMessage output = createOutputMessage();
    WSIFMessage fault = createFaultMessage();

    receiveJmsMessage(response, output, fault);

    handler.executeAsyncResponse(output, fault);
    Trc.exit();
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.