Package org.jboss.soa.esb.actions.soap.SOAPClient

Examples of org.jboss.soa.esb.actions.soap.SOAPClient.Response


        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-05");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-01.xml")));
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
        @SuppressWarnings("unused")
    Order order = (Order) message.getBody().get();
        //assertEquals();
    }
View Full Code Here


        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-02");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-01.xml")));
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
        Map<String, String> responseMap = (Map<String, String>) message.getBody().get();

        assertEquals("{customerOrder.orderheader.customerName=Tom Fennelly, customerOrder.items[0].partNumber=1, customerOrder.items[0].description=desc-1, customerOrder.items[0].quantity=1, customerOrder.items[0].price=1.1, customerOrder.items[0].extensionAmount=1, customerOrder.items[1].partNumber=2, customerOrder.items[1].description=desc-2, customerOrder.items[1].quantity=2, customerOrder.items[1].price=2.2, customerOrder.items[1].extensionAmount=2}", responseMap.toString());
    }
View Full Code Here

                          " processOrderResponse.OrderStatus.lineItems[1].comments[2]=Item2 Comments3," +
                          " processOrderResponse.OrderStatus.lineItems[1].comments[3]=Item2 Comments4}";

        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
        Map<String, String> responseMap = (Map<String, String>) message.getBody().get();

        assertEquals(expected, responseMap.toString());
    }
View Full Code Here

                          " orderResponse.orderStatus[1].id=2," +
                          " orderResponse.orderStatus[1].comment=order 2 processed}";

        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
        Map<String, String> responseMap = (Map<String, String>) message.getBody().get();

        assertEquals(expected, responseMap.toString());
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.soap.SOAPClient.Response

Copyright © 2018 www.massapicom. 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.