Hi Sandamal, in current implementation, StockQuoteClient does not have the ability to get he http response herders. So you can use a Http Client to send a HTTP POST request and get the http response headers. Please refer the doPost method in [1] for how to get the response headers. since This implementation is not in the 4.2.3, you have to keep this method inside your test class itself.
[1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/test-automation-framework/4.2.6/org.wso2.carbon.automation.core/src/main/java/org/wso2/carbon/automation/core/utils/HttpRequestUtil.java Thanks, Nuwanw On Mon, Jan 5, 2015 at 3:55 AM, Sandamal Weerasinghe <[email protected]> wrote: > Hi, > > axis2Client.sendSimpleStockQuoteRequest(..) returns only the SOAP body of > the response. Upon inspecting the code I found that > org.apache.axis2.client.ServiceClient.sendReceive(..) gets the SOAP body > of the response and returns it (return > response.getEnvelope().getBody().getFirstElement()). Is there a way to > read the full SOAP envelop or the SOAP headers of a response? The test > framework version I'm using is 4.2.3. > > Thanks. > > Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd > > Mobile - +94-77-144-9640 > -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
