axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (AXIS2C-706) google sample fails when the message is chunked.
Date Mon, 03 Dec 2007 07:42:43 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547752
] 

senakafdo edited comment on AXIS2C-706 at 12/2/07 11:42 PM:
------------------------------------------------------------------

Hi all,

I tested this sample by sending the chunked payload on curl as well as through Axis2/C. These
are the snapshots from tcpmon.

1. Curl
=================
POST /search/beta2 HTTP/1.1

User-Agent: curl/7.15.5 (i486-pc-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

Host: api.google.com:7077

Accept: */*

Content-Type:text/xml

Transfer-Encoding: chunked



22f

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:doSpellingSuggestion
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:GoogleSearch"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><key xsi:type="xsd:string">xxx</key><phrase
xsi:type="xsd:string">salvasion</phrase></ns1:doSpellingSuggestion></soapenv:Body></soapenv:Envelope>

0

=================

2. Axis2/C
=================
POST http://api.google.com:80/search/beta2 HTTP/1.1

User-Agent: Axis2/C

SOAPAction: ""

Transfer-Encoding: chunked

Content-Type: text/xml;charset=UTF-8

Host: api.google.com:80



22f

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:doSpellingSuggestion
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:GoogleSearch"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><key xsi:type="xsd:string">xxx</key><phrase
xsi:type="xsd:string">salvasion</phrase></ns1:doSpellingSuggestion></soapenv:Body></soapenv:Envelope>

0

=================

And google sent the  same response.

=================
HTTP/1.1 500 Internal Server Error

Content-Type: text/xml; charset=utf-8

Content-Length: 449

Cache-control: private

Date: Mon, 03 Dec 2007 07:03:33 GMT

Server: GFE/1.3

Connection: Close



<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Protocol</faultcode>
<faultstring>Content length must be specified.</faultstring>
<faultactor>/search/beta2</faultactor>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
=================

I guess the issue lies with google.

Regards,
Senaka




      was (Author: senakafdo):
    Hi all,

I tested this sample by sending the chunked payload on curl as well as through Axis2/C. These
are the snapshots from tcpmon.

1. Curl
=================
POST /search/beta2 HTTP/1.1

User-Agent: curl/7.15.5 (i486-pc-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

Host: api.google.com:7077

Accept: */*

Content-Type:text/xml

Transfer-Encoding: chunked



22f

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:doSpellingSuggestion
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:GoogleSearch"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><key xsi:type="xsd:string">ixSzAkNQFHJMnjkRrzChE6CTHyYFHOJY</key><phrase
xsi:type="xsd:string">salvasion</phrase></ns1:doSpellingSuggestion></soapenv:Body></soapenv:Envelope>

0

=================

2. Axis2/C
=================
POST http://api.google.com:80/search/beta2 HTTP/1.1

User-Agent: Axis2/C

SOAPAction: ""

Transfer-Encoding: chunked

Content-Type: text/xml;charset=UTF-8

Host: api.google.com:80



22f

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:doSpellingSuggestion
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:GoogleSearch"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"><key xsi:type="xsd:string">ixSzAkNQFHJMnjkRrzChE6CTHyYFHOJY</key><phrase
xsi:type="xsd:string">salvasion</phrase></ns1:doSpellingSuggestion></soapenv:Body></soapenv:Envelope>

0

=================

And google sent the  same response.

=================
HTTP/1.1 500 Internal Server Error

Content-Type: text/xml; charset=utf-8

Content-Length: 449

Cache-control: private

Date: Mon, 03 Dec 2007 07:03:33 GMT

Server: GFE/1.3

Connection: Close



<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Protocol</faultcode>
<faultstring>Content length must be specified.</faultstring>
<faultactor>/search/beta2</faultactor>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
=================

I guess the issue lies with google.

Regards,
Senaka



  
> google sample fails when the message is chunked.
> ------------------------------------------------
>
>                 Key: AXIS2C-706
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-706
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>         Environment: Linux
>            Reporter: Dushshantha Chandradasa
>            Assignee: Dushshantha Chandradasa
>             Fix For: 1.2.0
>
>
> google sample fails when the message is chunked. The fault string says that "Content
length must be specified".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message