List Info

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
country flaguser name
United States
2008-05-28 08:38:13
 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
-- 
View this message in context: http://www.nabble.com/Axis2-coding-to
-generate-response-envelope-confirming-to-the-soap-version-o
f-the-request-tp17512875p17512875.html
Sent from the Axis - Dev mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org


Re: Axis2 coding to generate response/envelope confirming to the soap version of the request
user name
2008-05-29 00:37:33
Please try AXIS2 1.4 release. This problem has to be fixed .

Thank you!

Saminda

On Wed, May 28, 2008 at 7:08 PM, cmurali < chakravarthymsddc.army.mil">chakravarthymsddc.army.mil> wrote:

 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
--
View this message in context: http://www.nabble.com/Axis2-coding-to-generate-response-envelope-confirming-to-the-soap-version-of-the-request-tp17512875p17512875.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org">axis-dev-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org">axis-dev-helpws.apache.org




--
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org
Re: Axis2 coding to generate response/envelope confirming to the soap version of the request
country flaguser name
United States
2008-05-29 12:53:27
Are you saying that this issue is fixed in axis 1.4? And it
is a known issue
in Axis 1.3?


Saminda Abeyruwan-3 wrote:
> 
> Please try AXIS2 1.4 release. This problem has to be
fixed .
> 
> Thank you!
> 
> Saminda
> 
> On Wed, May 28, 2008 at 7:08 PM, cmurali
<chakravarthymsddc.army.mil>
> wrote:
> 
>>
>>  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
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-coding-to
-generate-response-envelope-confirming-to-the-soap-version-o
f-the-request-tp17512875p17512875.html
>> Sent from the Axis - Dev mailing list archive at
Nabble.com.
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org
>> For additional commands, e-mail: axis-dev-helpws.apache.org
>>
>>
> 
> 
> -- 
> Saminda Abeyruwan
> 
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-coding-to
-generate-response-envelope-confirming-to-the-soap-version-o
f-the-request-tp17512875p17542095.html
Sent from the Axis - Dev mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org


Re: Axis2 coding to generate response/envelope confirming to the soap version of the request
user name
2008-05-29 15:10:03
Well I am not sure whether this is a bug or not.

The getDefaultEnvelope method is implemented both within SOAP11 and SOAP12 factories. So the code you have mentioned is fine, as far as you get the proper factory.
Yes, Axis2 will send out the proper version depending on the version of the message it received, unless you override it manually. If that is not happening, THEN that is a bug.

On Wed, May 28, 2008 at 6:38 AM, cmurali < chakravarthymsddc.army.mil">chakravarthymsddc.army.mil> wrote:

 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
--
View this message in context: http://www.nabble.com/Axis2-coding-to-generate-response-envelope-confirming-to-the-soap-version-of-the-request-tp17512875p17512875.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org">axis-dev-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org">axis-dev-helpws.apache.org




--
With Mettha,
Eran Chinthaka

--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: Axis2 coding to generate response/envelope confirming to the soap version of the request
country flaguser name
United States
2008-06-02 10:39:13
I did not override it. I am using the generated
MessageReceiverInOut.java. So
it looks like a bug. Would it help if I upgrade to Axis2
1.4?


Eran Chinthaka-3 wrote:
> 
> Well I am not sure whether this is a bug or not.
> 
> The getDefaultEnvelope method is implemented both
within SOAP11 and SOAP12
> factories. So the code you have mentioned is fine, as
far as you get the
> proper factory.
> Yes, Axis2 will send out the proper version depending
on the version of
> the
> message it received, unless you override it manually.
If that is not
> happening, THEN that is a bug.
> 
> On Wed, May 28, 2008 at 6:38 AM, cmurali
<chakravarthymsddc.army.mil>
> wrote:
> 
>>
>>  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
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-coding-to
-generate-response-envelope-confirming-to-the-soap-version-o
f-the-request-tp17512875p17512875.html
>> Sent from the Axis - Dev mailing list archive at
Nabble.com.
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org
>> For additional commands, e-mail: axis-dev-helpws.apache.org
>>
>>
> 
> 
> -- 
> With Mettha,
> Eran Chinthaka
> 
>
------------------------------------------------------------
--------
> Health is the greatest gift; contentment is the
greatest wealth; trusting
> is
> the best relationship; nirvana is the highest joy. -
Dhammapada
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-coding-to
-generate-response-envelope-confirming-to-the-soap-version-o
f-the-request-tp17512875p17604237.html
Sent from the Axis - Dev mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: axis-dev-unsubscribews.apache.org
For additional commands, e-mail: axis-dev-helpws.apache.org


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )