You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Andy Karseras <ak...@gmail.com> on 2008/07/07 23:41:40 UTC
Setting HTTP Headers
Hi,
Is there any way of setting the following headers using code ?
- SOAPAction: "urn:anonOutInOp"
- Transfer-Encoding: chunked
I have tried uncommenting the relevant line in the axis.xml for
Transfer-Encoding but this didn't seem to work.
Many thanks.
Andy
Re: Setting HTTP Headers
Posted by Samisa Abeysinghe <sa...@wso2.com>.
Andy Karseras wrote:
> Hi,
>
> Is there any way of setting the following headers using code ?
>
> - SOAPAction: "urn:anonOutInOp"
Please have a look into the axis2_svc_client.h header. You can find out
how to set SOAP action as well as other API info in there.
> - Transfer-Encoding: chunked
If you want the transfer to be chunked form client, you have to use
libcurl client transport.
Thanks,
Samisa...
>
> I have tried uncommenting the relevant line in the axis.xml for
> Transfer-Encoding but this didn't seem to work.
>
> Many thanks.
>
>
> Andy
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.4.6/1538 - Release Date: 7/7/2008 7:40 AM
>
--
Samisa Abeysinghe
Director, Engineering; WSO2 Inc.
http://www.wso2.com/ - "The Open Source SOA Company"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
Re: Setting HTTP Headers
Posted by Manjula Peiris <ma...@wso2.com>.
Andy,
First try after commenting the HTTP-Authentication part from the
axis2.xml. If that is the case then it is a bug.
-Manjula.
On Tue, 2008-07-08 at 10:05 -0400, Andy Karseras wrote:
> Hi,
>
> I am using release 1.4.0.
>
>
> From the axis2.xml (hopefully this is sufficient)...
>
> <!-- ================================================= -->
> <!-- Transport Outs -->
> <!-- ================================================= -->
> <transportSender name="http" class="axis2_http_sender">
> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
> <!--parameter name="xml-declaration" insert="false"/-->
> <parameter name="Transfer-Encoding">chunked</parameter>
> <parameter name="HTTP-Authentication" username="application"
> password="abcdefg" locked="true"/>
> <!--parameter name="PROXY" proxy_host="127.0.0.1"
> proxy_port="8080" proxy_username="" proxy_password=""
> locked="true"/-->
> </transportSender>
>
> The resulting request header...
>
> POST /services/application HTTP/1.1
> User-Agent: Axis2C/1.4.0
> SOAPAction: ""
> Content-Length: 606
> Content-Type: text/xml;charset=UTF-8
> Host: localhost:7547
> Authorization: Basic YXBwbGljYXRpb246d2x5VmRaWjA1RDg=
>
> Regards,
>
> Andy
>
>
> On Mon, Jul 7, 2008 at 11:06 PM, Samisa Abeysinghe <sa...@wso2.com>
> wrote:
> Manjula Peiris wrote:
> On Mon, 2008-07-07 at 17:41 -0400, Andy Karseras
> wrote:
>
> Hi,
>
> Is there any way of setting the following
> headers using code ?
>
> - SOAPAction: "urn:anonOutInOp"
> - Transfer-Encoding: chunked
>
> I have tried uncommenting the relevant line in
> the axis.xml for
> Transfer-Encoding but this didn't seem to
> work.
>
>
> AFAIK With Axis2/C 1.4 for normal SOAP samples this is
> working. The
> message can be sent with chunking header , but the
> http body as a one
> chunk. Can you send us the axis2.xml and some details
> on what version of
> Axis2/C are using ?
>
>
>
> Use the latest version of Axis2/C, do not use an old
> version :)
>
> Samisa...
>
>
> Many thanks.
>
>
> Andy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-c-user-help@ws.apache.org
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com Version: 8.0.138 /
> Virus Database: 270.4.6/1538 - Release Date: 7/7/2008
> 7:40 AM
>
>
>
>
>
>
>
> --
> Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>
> http://www.wso2.com/ - "The Open Source SOA Company"
>
>
> ---------------------------------------------------------------------
>
>
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-c-user-help@ws.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
Re: Setting HTTP Headers
Posted by Andy Karseras <ak...@gmail.com>.
Hi,
I am using release 1.4.0.
>From the axis2.xml (hopefully this is sufficient)...
<!-- ================================================= -->
<!-- Transport Outs -->
<!-- ================================================= -->
<transportSender name="http" class="axis2_http_sender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
<!--parameter name="xml-declaration" insert="false"/-->
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="HTTP-Authentication" username="application"
password="abcdefg" locked="true"/>
<!--parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080"
proxy_username="" proxy_password="" locked="true"/-->
</transportSender>
The resulting request header...
POST /services/application HTTP/1.1
User-Agent: Axis2C/1.4.0
SOAPAction: ""
Content-Length: 606
Content-Type: text/xml;charset=UTF-8
Host: localhost:7547
Authorization: Basic YXBwbGljYXRpb246d2x5VmRaWjA1RDg=
Regards,
Andy
On Mon, Jul 7, 2008 at 11:06 PM, Samisa Abeysinghe <sa...@wso2.com> wrote:
> Manjula Peiris wrote:
>
>> On Mon, 2008-07-07 at 17:41 -0400, Andy Karseras wrote:
>>
>>
>>> Hi,
>>>
>>> Is there any way of setting the following headers using code ?
>>>
>>> - SOAPAction: "urn:anonOutInOp"
>>> - Transfer-Encoding: chunked
>>>
>>> I have tried uncommenting the relevant line in the axis.xml for
>>> Transfer-Encoding but this didn't seem to work.
>>>
>>>
>>
>> AFAIK With Axis2/C 1.4 for normal SOAP samples this is working. The
>> message can be sent with chunking header , but the http body as a one
>> chunk. Can you send us the axis2.xml and some details on what version of
>> Axis2/C are using ?
>>
>>
>
> Use the latest version of Axis2/C, do not use an old version :)
>
> Samisa...
>
>
>>
>>> Many thanks.
>>>
>>>
>>> Andy
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database:
>> 270.4.6/1538 - Release Date: 7/7/2008 7:40 AM
>>
>>
>>
>>
>>
>
>
> --
> Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>
> http://www.wso2.com/ - "The Open Source SOA Company"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
Re: Setting HTTP Headers
Posted by Samisa Abeysinghe <sa...@wso2.com>.
Manjula Peiris wrote:
> On Mon, 2008-07-07 at 17:41 -0400, Andy Karseras wrote:
>
>> Hi,
>>
>> Is there any way of setting the following headers using code ?
>>
>> - SOAPAction: "urn:anonOutInOp"
>> - Transfer-Encoding: chunked
>>
>> I have tried uncommenting the relevant line in the axis.xml for
>> Transfer-Encoding but this didn't seem to work.
>>
>
> AFAIK With Axis2/C 1.4 for normal SOAP samples this is working. The
> message can be sent with chunking header , but the http body as a one
> chunk. Can you send us the axis2.xml and some details on what version of
> Axis2/C are using ?
>
Use the latest version of Axis2/C, do not use an old version :)
Samisa...
>
>> Many thanks.
>>
>>
>> Andy
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.4.6/1538 - Release Date: 7/7/2008 7:40 AM
>
>
>
>
--
Samisa Abeysinghe
Director, Engineering; WSO2 Inc.
http://www.wso2.com/ - "The Open Source SOA Company"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
Re: Setting HTTP Headers
Posted by Manjula Peiris <ma...@wso2.com>.
On Mon, 2008-07-07 at 17:41 -0400, Andy Karseras wrote:
> Hi,
>
> Is there any way of setting the following headers using code ?
>
> - SOAPAction: "urn:anonOutInOp"
> - Transfer-Encoding: chunked
>
> I have tried uncommenting the relevant line in the axis.xml for
> Transfer-Encoding but this didn't seem to work.
AFAIK With Axis2/C 1.4 for normal SOAP samples this is working. The
message can be sent with chunking header , but the http body as a one
chunk. Can you send us the axis2.xml and some details on what version of
Axis2/C are using ?
>
> Many thanks.
>
>
> Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org