« Return to Thread: Axis2 coding to generate response/envelope confirming to the soap version of the request

Axis2 coding to generate response/envelope confirming to the soap version of the request

by cmurali :: Rate this Message:

Reply to Author | View in Thread

 Hi,

I am using AXIS2 1.3 and when I generate the MessageReceiverInOut.java using the wsdl2java, I see that the envelope for the response created is always a default envelope and I was expecting the envelope to confirm to the soap version of the request. That is, if I submit a soap11 request, I should get a soap11 response and for a soap12 request I should get back a soap12 response. But I always get the soap11 response/envelope.

Code from MessageReceiverInOut.java
==============================
envelope = toEnvelope(getSOAPFactory(msgContext), rateRankResponse3, false);

toEnvelope method always returns factory.getDefaultEnvelope()

Could I get some suggestions and code snippets to fix this please?

Thanks,
Muralidaran Chakravarthy

 « Return to Thread: Axis2 coding to generate response/envelope confirming to the soap version of the request