<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7037735198482028707.post5062495984876012983..comments</id><updated>2011-11-28T17:11:46.991+05:30</updated><category term='WSO2 Registry'/><category term='Data Services'/><category term='Mule'/><category term='University of Moratuwa'/><category term='MTOM'/><category term='Enterprice Service Bus'/><category term='Performance'/><category term='REST'/><category term='ESB'/><category term='WSO2 ESB'/><category term='Mashup Server'/><category term='UOM'/><category term='Cricket'/><category term='Synapse'/><category term='wsdl2java'/><category term='Maven2'/><category term='OSGI'/><category term='WSF/Jython'/><category term='E4X'/><category term='paul'/><category term='Integration'/><category term='open source'/><category term='Registry'/><category term='SOA'/><category term='WSO2'/><category term='WSO2 WSAS'/><category term='GSOC'/><category term='TCP Monitor'/><category term='Identity'/><category term='Axiom'/><category term='SMTP'/><category term='WSO2 Carbon'/><category term='Travel'/><category term='WSO2 BPS'/><category term='WSF/PHP'/><category term='MOOSHUP'/><category term='Surefire plugin'/><category term='Rampart'/><category term='JMS'/><category term='LTTE'/><category term='JUnit'/><category term='ApacheCon'/><category term='JavaScript'/><category term='WSDL 2.0'/><category term='XML Schema'/><category term='deepal'/><category term='IM'/><category term='Axis2'/><title type='text'>Comments on Keith Chapman's Blog: Axis2 - Setting custom HTTP Headers on a response</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.keith-chapman.org/feeds/5062495984876012983/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html'/><author><name>Keith Chapman</name><uri>http://www.blogger.com/profile/17984975074729516057</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/__pHtgOZLa0Q/SYhYvwxLupI/AAAAAAAAAFk/QTlw0oc1dCQ/S220/keith-sss.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-6630952901352111652</id><published>2011-11-28T17:11:46.991+05:30</published><updated>2011-11-28T17:11:46.991+05:30</updated><title type='text'>Thank you for the post. This helped me a lot</title><content type='html'>Thank you for the post. This helped me a lot</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/6630952901352111652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/6630952901352111652'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1322480506991#c6630952901352111652' title=''/><author><name>sriraj</name><uri>http://www.blogger.com/profile/04774948395852097878</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1220062847'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-4321196060067298895</id><published>2010-06-13T23:34:57.977+05:30</published><updated>2010-06-13T23:34:57.977+05:30</updated><title type='text'>Hi Keith,

I need to add few custome http headers ...</title><content type='html'>Hi Keith,&lt;br /&gt;&lt;br /&gt;I need to add few custome http headers to the request. How to do so with Axis2. I have got the java stubs by running wsdl2java.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Irum</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/4321196060067298895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/4321196060067298895'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1276452297977#c4321196060067298895' title=''/><author><name>Noherceykar</name><uri>http://www.blogger.com/profile/10385729484137300357</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-297689398'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-4784679145773310059</id><published>2009-01-27T19:15:00.000+05:30</published><updated>2009-01-27T19:15:00.000+05:30</updated><title type='text'>Hi Keith,&lt;br&gt;          the request message is sent...</title><content type='html'>Hi Keith,&lt;BR/&gt;          the request message is sent as soap xml with media type as application/x-gzip. It's sending chunked response also. But i want it to send only compressed request instead of soap request. I made all req settigns in client and server code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/4784679145773310059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/4784679145773310059'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1233063900000#c4784679145773310059' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/06893942540403783373</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-564166514'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-2758451845614083981</id><published>2009-01-21T20:08:00.000+05:30</published><updated>2009-01-21T20:08:00.000+05:30</updated><title type='text'>Hi Keith,&lt;br&gt;&lt;br&gt;Any idea on how to override the C...</title><content type='html'>Hi Keith,&lt;BR/&gt;&lt;BR/&gt;Any idea on how to override the Content-type Header? &lt;BR/&gt;&lt;BR/&gt;Regards,&lt;BR/&gt;Naveen.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/2758451845614083981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/2758451845614083981'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232548680000#c2758451845614083981' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-957119901719490218</id><published>2009-01-21T19:08:00.000+05:30</published><updated>2009-01-21T19:08:00.000+05:30</updated><title type='text'>Also my request soap message has no attachments.</title><content type='html'>Also my request soap message has no attachments.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/957119901719490218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/957119901719490218'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232545080000#c957119901719490218' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-544284486519041252</id><published>2009-01-21T19:01:00.000+05:30</published><updated>2009-01-21T19:01:00.000+05:30</updated><title type='text'>_operationClient.getOperationContext().getMessageC...</title><content type='html'>_operationClient.getOperationContext().getMessageContext(&lt;BR/&gt;    WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(&lt;BR/&gt;    org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP,&lt;BR/&gt;    Boolean.TRUE);&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext(&lt;BR/&gt;    WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(&lt;BR/&gt;    org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST,&lt;BR/&gt;    Boolean.TRUE);&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext(&lt;BR/&gt;    WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(&lt;BR/&gt;    org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_RESPONSE,&lt;BR/&gt;    Boolean.TRUE);&lt;BR/&gt;&lt;BR/&gt;_operationClient&lt;BR/&gt;    .getOperationContext()&lt;BR/&gt;    .getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)&lt;BR/&gt;    .setProperty(&lt;BR/&gt;      org.apache.axis2.transport.http.HTTPConstants.HEADER_ACCEPT_ENCODING,&lt;BR/&gt;      "gzip");&lt;BR/&gt;  _operationClient&lt;BR/&gt;    .getOperationContext()&lt;BR/&gt;    .getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)&lt;BR/&gt;    .setProperty(&lt;BR/&gt;      org.apache.axis2.transport.http.HTTPConstants.HEADER_CONTENT_ENCODING,&lt;BR/&gt;      "gzip");&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;My problem is that the .NET client doesn't accept the content-type other than "application/x-gzip". For any other content-type it is throwing exception.&lt;BR/&gt;&lt;BR/&gt;So Content-Type header needs to be changed for the .NET client to receive my request and give response.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/544284486519041252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/544284486519041252'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232544660000#c544284486519041252' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-5994018949024113318</id><published>2009-01-21T18:58:00.000+05:30</published><updated>2009-01-21T18:58:00.000+05:30</updated><title type='text'>Sorry for the mistake while posting my code. It is...</title><content type='html'>Sorry for the mistake while posting my code. It is:&lt;BR/&gt;&lt;BR/&gt;_operationClient.getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_RESPONSE, Boolean.TRUE);&lt;BR/&gt;&lt;BR/&gt;_operationClient.getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.HEADER_ACCEPT_ENCODING, "gzip");&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.HEADER_CONTENT_ENCODING, "gzip");&lt;BR/&gt;&lt;BR/&gt;Regards,&lt;BR/&gt;Naveen.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/5994018949024113318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/5994018949024113318'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232544480000#c5994018949024113318' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-2007068835137647098</id><published>2009-01-21T18:55:00.000+05:30</published><updated>2009-01-21T18:55:00.000+05:30</updated><title type='text'>Hi Ketih, thanks for reply. My problem is i am get...</title><content type='html'>Hi Ketih, thanks for reply. My problem is i am getting the following error if i don't add a header for content-Type with value application/x-gzip.&lt;BR/&gt;&lt;BR/&gt;org.apache.axis2.AxisFault: Transport error: 415 Error: Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/x-gzip'.&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;But if i add a header for Content-Type with a value "application/x-gzip" ,i am getting bad request error becoz of duplicate header for Content-Type.&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;Is there anyway for me to override the content type header value?&lt;BR/&gt;&lt;BR/&gt;I have already enabled the gzip compression and it is compressing the body with gzip encoding correctly ni the request.&lt;BR/&gt;&lt;BR/&gt;serviceClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);&lt;BR/&gt;  _serviceClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);&lt;BR/&gt;  _serviceClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_RESPONSE, Boolean.TRUE);&lt;BR/&gt;&lt;BR/&gt;_operationClient.getOperationContext().getMessageContext( &lt;BR/&gt;                WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.HEADER_ACCEPT_ENCODING, "gzip");&lt;BR/&gt;  _operationClient.getOperationContext().getMessageContext( &lt;BR/&gt;                WSDLConstants.MESSAGE_LABEL_OUT_VALUE).setProperty(org.apache.axis2.transport.http.HTTPConstants.HEADER_CONTENT_ENCODING, "gzip");&lt;BR/&gt;&lt;BR/&gt;Is there anyway to override the Content-type  header with a value "application/x-gzip"?&lt;BR/&gt;&lt;BR/&gt;I am running my webservice with axis2 1.4.1 and tomcat as unit test container.&lt;BR/&gt;&lt;BR/&gt;Thanks for your help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/2007068835137647098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/2007068835137647098'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232544300000#c2007068835137647098' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-3950344832822279207</id><published>2009-01-21T17:35:00.000+05:30</published><updated>2009-01-21T17:35:00.000+05:30</updated><title type='text'>Well this is a special case and just setting the c...</title><content type='html'>Well this is a special case and just setting the content-type header to application/x-gzip will not help. Cause the content-type header describes the format of the message hence of u are setting the contentType to application/x-gzip you would want the request to be compressed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3950344832822279207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3950344832822279207'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232539500000#c3950344832822279207' title=''/><author><name>Keith Chapman</name><uri>http://www.blogger.com/profile/17984975074729516057</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://bp3.blogger.com/__pHtgOZLa0Q/R3p8lTZa2dI/AAAAAAAAABY/aAZNG5-s-Wg/S220/keith.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-96948726'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-5905896683494873552</id><published>2009-01-21T17:29:00.000+05:30</published><updated>2009-01-21T17:29:00.000+05:30</updated><title type='text'>org.apache.axis2.AxisFault: Transport error: 415 E...</title><content type='html'>org.apache.axis2.AxisFault: Transport error: 415 Error: Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/x-gzip'.&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;This is the eror i ma getting.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/5905896683494873552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/5905896683494873552'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232539140000#c5905896683494873552' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-6035411745782802571</id><published>2009-01-21T17:20:00.001+05:30</published><updated>2009-01-21T17:20:00.001+05:30</updated><title type='text'>thanks in advance for your help.</title><content type='html'>thanks in advance for your help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/6035411745782802571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/6035411745782802571'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232538600001#c6035411745782802571' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-627323957946444399</id><published>2009-01-21T17:20:00.000+05:30</published><updated>2009-01-21T17:20:00.000+05:30</updated><title type='text'>i am using axis2 1.4.1</title><content type='html'>i am using axis2 1.4.1</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/627323957946444399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/627323957946444399'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232538600000#c627323957946444399' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-7778409320191871736</id><published>2009-01-21T17:16:00.000+05:30</published><updated>2009-01-21T17:16:00.000+05:30</updated><title type='text'>Hi,Keith, i ned to edit the Content-Type header of...</title><content type='html'>Hi,Keith, i ned to edit the Content-Type header of the request message. Currently the Content-Type is text/xml as oi am using soap 1.1. But i want to change it to application/x-gzip while sending the request as the .NET client expects the Content-type header to be "application/x-gzip" instead of text/xml. I tried adding a header as per your logic but it as adding another Content-Type header with "application/x-gzip" as value causing duplicate header problem. Could you please let me know how to override the Content-Type header in my soap request using axis2 ADB generated stub without having a duplicate header? You can mail me at naveenkvm"@gmail.com&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;naveen</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/7778409320191871736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/7778409320191871736'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1232538360000#c7778409320191871736' title=''/><author><name>indian</name><uri>http://www.blogger.com/profile/17715860723435688630</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1307469577'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-3919672276626836431</id><published>2008-12-02T01:24:00.000+05:30</published><updated>2008-12-02T01:24:00.000+05:30</updated><title type='text'>Why not use the TRANSPORT_HEADERS property in the ...</title><content type='html'>Why not use the TRANSPORT_HEADERS property in the msg ctx to set the response headers as well. The axis2 http sender can just read the values from this property and add it to the underlying HTTPClient as HTTPHeader instances instead of exposing this detail to the user. To me this seems like a case of Leaky Abstraction (http://en.wikipedia.org/wiki/Leaky_abstraction)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3919672276626836431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3919672276626836431'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1228161240000#c3919672276626836431' title=''/><author><name>Murali</name><uri>http://www.blogger.com/profile/05179350806352381133</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1576153869'/></entry><entry><id>tag:blogger.com,1999:blog-7037735198482028707.post-3362263218169847237</id><published>2008-11-25T22:50:00.000+05:30</published><updated>2008-11-25T22:50:00.000+05:30</updated><title type='text'>Thank you Keith. Your blog helped me at time. I wa...</title><content type='html'>Thank you Keith. Your blog helped me at time. I was searching for help to set the SOAP Header on axis2 response.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3362263218169847237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7037735198482028707/5062495984876012983/comments/default/3362263218169847237'/><link rel='alternate' type='text/html' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html?showComment=1227633600000#c3362263218169847237' title=''/><author><name>Prasuna</name><uri>http://www.blogger.com/profile/11215670272437752177</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html' ref='tag:blogger.com,1999:blog-7037735198482028707.post-5062495984876012983' source='http://www.blogger.com/feeds/7037735198482028707/posts/default/5062495984876012983' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-314299196'/></entry></feed>
