Re: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread sri ram
Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my own 
headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM

Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header
 mentioning the Content Length of the SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 




   Connect with friends all over the world.  Get Yahoo! India Messenger.

   Connect with friends all over the world.  Get Yahoo! India Messenger.


  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread Erwin Reinhoud
Do you need to apply chunking? I think if you dont the Content length is
added.
 
regards,
Erwin



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: Getting the Content Lenth of The SOAP Response


Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't
set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my
own headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:



From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM


Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:



From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM


Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the
SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 






Connect with friends all over the world. Get Yahoo! India
Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.c
om/?wm=n/ 




Connect with friends all over the world. Get Yahoo! India
Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.c
om/?wm=n/ 




From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.yahoo.com/gr
oups/citygroups/ 


RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread sri ram
Hi Erwin,

We don't need chunking ,thats the reason we need Content Length header .

Regards,
Sriram


--- On Wed, 22/4/09, Erwin Reinhoud erwin.reinh...@ictu.nl wrote:

From: Erwin Reinhoud erwin.reinh...@ictu.nl
Subject: RE: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Wednesday, 22 April, 2009, 1:26 PM



 
Do 
you need to apply chunking? I think if you dont the Content length is 
added.
 
regards,
Erwin




Van: sri ram 
[mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 
2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: 
Getting the Content Lenth of The SOAP Response




  
  
Hi All,


In Axis 2.1.4 ,the axis servlet sets 
  some header by default but doesn't set the 
Content Length header which 
  plays a major part in chunking a response.

I just need to know how 
  to include this header in my response .
Should I Use MessageReceiver 
  Class ?
Or 
Are there some other Class that can manipulate the 
  response to add my own headers
Please let me  know its kind of 
  important.






--- On Tue, 14/4/09, sri ram 
  pinnamaraju_sri...@yahoo.co.in wrote:

  
From: 
sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting 
the Content Lenth of The SOAP Response
To: 
axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 
PM




  
  
Can someone immediately reply for this query.If needed 
  I can provide 
necessary data.Its urgent.

--- On Tue, 
  14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in 
  wrote:

  
From: 
sri ram pinnamaraju_sri...@yahoo.co.in
Subject: 
Getting the Content Lenth of The SOAP Response
To: 
axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 
PM




  
  
Hi all,
(Axis 2.14.) 
In my scenario we 
  need a header mentioning the Content Length of the SOAP 
  response
and we extend AxisServlet ,and do the 
  super.doPost(request,response).
Can some body let me 
  know how to extract the response size .

Thanks, 
  
Sriram 





Connect with friends all over the world. Get Yahoo! India 
  Messenger.


Connect with friends all over the world. Get Yahoo! India 
  Messenger.


From Chandigarh to Chennai - find friends all over India. Click 
here.


  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread Erwin Reinhoud
Hello Sriram,
 
Okay, that axis2 doesnt set content header when not applying chunking is
new to me. In my experience it only does not set it when applying
chunking. If you dont need chunking you might want to use http 1.0.
 
http://www.archivum.info/axis-user@ws.apache.org/2007-08/msg00343.html
 
 
Regards,
Erwin



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 11:10
Aan: axis-user@ws.apache.org
Onderwerp: RE: Getting the Content Lenth of The SOAP Response


Hi Erwin,

We don't need chunking ,thats the reason we need Content Length header .

Regards,
Sriram


--- On Wed, 22/4/09, Erwin Reinhoud erwin.reinh...@ictu.nl wrote:



From: Erwin Reinhoud erwin.reinh...@ictu.nl
Subject: RE: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Wednesday, 22 April, 2009, 1:26 PM


Do you need to apply chunking? I think if you dont the Content
length is added.
 
regards,
Erwin



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: Getting the Content Lenth of The SOAP Response


Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't
set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my
own headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:



From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM


Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:



From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM


Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the
SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 






Connect with friends all over the world. Get Yahoo! India
Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.c
om/?wm=n/ 




Connect with friends all over the world. Get Yahoo! India
Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.c
om/?wm=n/ 




From Chandigarh to Chennai - find friends all over India. Click
here.
http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.yahoo.com/gr
oups/citygroups/ 




From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.yahoo.com/gr
oups/citygroups/ 


RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread Li, Zhenge
Chunking can be turned off by tuning the
org.apache.axis2.transport.http.HTTPConstants.CHUNKED constant. 

 

Options options = new org.apache.axis2.client.Options.Options();

...

options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKE
D, false);

ServiceClient client = stub._getServiceClient();

client.setOptions(options);

 

You can check out http://wso2.org/library/230 for all available
parameters dealing with various aspects of Axis2. Believe me, Axis2 is
as flexible as you want it to be. :-)

 

-richard 

 



From: Erwin Reinhoud [mailto:erwin.reinh...@ictu.nl] 
Sent: April 22, 2009 6:37 AM
To: axis-user@ws.apache.org
Subject: RE: Getting the Content Lenth of The SOAP Response

 

Hello Sriram,

 

Okay, that axis2 doesnt set content header when not applying chunking is
new to me. In my experience it only does not set it when applying
chunking. If you dont need chunking you might want to use http 1.0.

 

http://www.archivum.info/axis-user@ws.apache.org/2007-08/msg00343.html

 

 

Regards,

Erwin

 



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 11:10
Aan: axis-user@ws.apache.org
Onderwerp: RE: Getting the Content Lenth of The SOAP Response

Hi Erwin,

We don't need chunking ,thats the reason we need Content Length header .

Regards,
Sriram


--- On Wed, 22/4/09, Erwin Reinhoud erwin.reinh...@ictu.nl wrote:


From: Erwin Reinhoud erwin.reinh...@ictu.nl
Subject: RE: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Wednesday, 22 April, 2009, 1:26 PM

Do you need to apply chunking? I think if you dont the Content length is
added.

 

regards,

Erwin

 



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: Getting the Content Lenth of The SOAP Response

Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't
set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my
own headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM

Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the
SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 



 



Connect with friends all over the world. Get Yahoo! India Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co
m/?wm=n/ 

 



Connect with friends all over the world. Get Yahoo! India Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co
m/?wm=n/ 

 



From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro
ups/citygroups/ 







From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro
ups/citygroups/ 



RE: Getting the Content Lenth of The SOAP Response

2009-04-22 Thread Erwin Reinhoud
I think it is related to the service not the client. On service this
property (axis2.xml) has little effect it seems.
 
Regards,
Erwin



Van: Li, Zhenge [mailto:zhenge...@cgi.com] 
Verzonden: woensdag 22 april 2009 14:13
Aan: axis-user@ws.apache.org
Onderwerp: RE: Getting the Content Lenth of The SOAP Response



Chunking can be turned off by tuning the
org.apache.axis2.transport.http.HTTPConstants.CHUNKED constant. 

 

Options options = new org.apache.axis2.client.Options.Options();

...

options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKE
D, false);

ServiceClient client = stub._getServiceClient();

client.setOptions(options);

 

You can check out http://wso2.org/library/230 for all available
parameters dealing with various aspects of Axis2. Believe me, Axis2 is
as flexible as you want it to be. :-)

 

-richard 

 



From: Erwin Reinhoud [mailto:erwin.reinh...@ictu.nl] 
Sent: April 22, 2009 6:37 AM
To: axis-user@ws.apache.org
Subject: RE: Getting the Content Lenth of The SOAP Response

 

Hello Sriram,

 

Okay, that axis2 doesnt set content header when not applying chunking is
new to me. In my experience it only does not set it when applying
chunking. If you dont need chunking you might want to use http 1.0.

 

http://www.archivum.info/axis-user@ws.apache.org/2007-08/msg00343.html

 

 

Regards,

Erwin

 



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 11:10
Aan: axis-user@ws.apache.org
Onderwerp: RE: Getting the Content Lenth of The SOAP Response

Hi Erwin,

We don't need chunking ,thats the reason we need Content Length header .

Regards,
Sriram


--- On Wed, 22/4/09, Erwin Reinhoud erwin.reinh...@ictu.nl wrote:


From: Erwin Reinhoud erwin.reinh...@ictu.nl
Subject: RE: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Wednesday, 22 April, 2009, 1:26 PM

Do you need to apply chunking? I think if you dont the Content length is
added.

 

regards,

Erwin

 



Van: sri ram [mailto:pinnamaraju_sri...@yahoo.co.in] 
Verzonden: woensdag 22 april 2009 8:46
Aan: axis-user@ws.apache.org
Onderwerp: Re: Getting the Content Lenth of The SOAP Response

Hi All,


In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't
set the 
Content Length header which plays a major part in chunking a response.

I just need to know how to include this header in my response .
Should I Use MessageReceiver Class ?
Or 
Are there some other Class that can manipulate the response to add my
own headers
Please let me  know its kind of important.






--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Re: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 5:59 PM

Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:


From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the
SOAP response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 



 



Connect with friends all over the world. Get Yahoo! India Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co
m/?wm=n/ 

 



Connect with friends all over the world. Get Yahoo! India Messenger.
http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co
m/?wm=n/ 

 



From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro
ups/citygroups/ 







From Chandigarh to Chennai - find friends all over India. Click here.
http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro
ups/citygroups/ 



Re: Getting the Content Lenth of The SOAP Response

2009-04-17 Thread rishi
Sriram,

I am by no means an expert but thought it might help you - so please
take it into consideration while implementing
it or spending time on it.

- From what I understand you need content's length in SoapEnvelope. --
to do so: There might be another easier way to do so:

but one way I could think is -- inside your messageReceiver - you have
handle to MessageContenxt - from that you can get SOAPEnvelope and
then
you can extract SoapHeader and SoapBody - Assuming you have Text
message - do string.length  on it and add
new OMElement as child of SoapHeaderBlock (please see AXIOM API)

-regards,
rishi


Getting the Content Lenth of The SOAP Response

2009-04-14 Thread sri ram
Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the SOAP 
response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 





  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Getting the Content Lenth of The SOAP Response

2009-04-14 Thread sri ram
Can someone immediately reply for this query.If needed I can provide 
necessary data.Its urgent.

--- On Tue, 14/4/09, sri ram pinnamaraju_sri...@yahoo.co.in wrote:

From: sri ram pinnamaraju_sri...@yahoo.co.in
Subject: Getting the Content Lenth of The SOAP Response
To: axis-user@ws.apache.org
Date: Tuesday, 14 April, 2009, 3:06 PM

Hi all,
(Axis 2.14.) 
In my scenario we need a header mentioning the Content Length of the SOAP 
response
and we extend AxisServlet ,and do the super.doPost(request,response).
Can some body let me know how to extract the response size .

Thanks, 
Sriram 




   Connect with friends all over the world.  Get Yahoo! India Messenger.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/