You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nils-Helge Garli (JIRA)" <ax...@ws.apache.org> on 2005/09/30 10:39:47 UTC

[jira] Created: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
------------------------------------------------------------

         Key: AXIS-2242
         URL: http://issues.apache.org/jira/browse/AXIS-2242
     Project: Apache Axis
        Type: Bug
    Versions: 1.2, 1.2.1    
 Environment: winnt, axis 1.2.1, IBM JRE 1.3
    Reporter: Nils-Helge Garli


Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".

The debug output looks like this:

DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)

I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330925 ] 

Oleg Kalnichevski commented on AXIS-2242:
-----------------------------------------

> DEBUG httpclient.wire.header - >> "Transfer-Encoding: chunked[\r][\n]" 

Here you go. The request appears to be perfectly well formed as far as I can tell. The problem seems to be on the server side. Do you know if the target server supports HTTP/1.1 and chunk-encoding?

Oleg

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Nils-Helge Garli (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330927 ] 

Nils-Helge Garli commented on AXIS-2242:
----------------------------------------

No, but I'll check that out. 

Is there a way I can change the transfer encoding with Axis?

Thank you for your assistance!

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Steve Loughran (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330936 ] 

Steve Loughran commented on AXIS-2242:
--------------------------------------

Can I add that the POST request clearly says "HTTP/1.1", and the HTTP1.1 spec cleary says

   All HTTP/1.1 applications MUST be able to receive and decode the
   "chunked" transfer-coding, and MUST ignore chunk-extension extensions
   they do not understand.

That is: if the far end accepted a request with an HTTP1.1 header and cannot handle chunks, then it is in error. Whose HTTP stack is it?

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330935 ] 

Oleg Kalnichevski commented on AXIS-2242:
-----------------------------------------

I have to plead complete ignorance about Axis, so I leave this report to Axis folks to pick up. As far as HttpClient is concerned one can easily disable chunk encoding for HTTP/1.1 requests or simply force Httpclient to fall back onto HTTP/1.0 protocol, which will effectively disable chunk encoding support. For details see the HttpClient Preference Architecture Guide:
http://jakarta.apache.org/commons/httpclient/preference-api.html

Oleg

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Nils-Helge Garli (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330923 ] 

Nils-Helge Garli commented on AXIS-2242:
----------------------------------------

DEBUG httpclient.wire.header -  >> "POST /SomeSoapService/service HTTP/1.1[\r][\n]"
DEBUG httpclient.wire.header -  >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
DEBUG httpclient.wire.header -  >> "SOAPAction: ""[\r][\n]"
DEBUG httpclient.wire.header -  >> "User-Agent: Jakarta Commons-HttpClient/3.0-rc3[\r][\n]"
DEBUG httpclient.wire.header -  >> "Host: www.somehost.com[\r][\n]"
DEBUG httpclient.wire.header -  >> "Transfer-Encoding: chunked[\r][\n]"
DEBUG httpclient.wire.header -  >> "[\r][\n]"
DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">[\n]"
DEBUG httpclient.wire.content -  >> "[0x9]<SOAP-ENV:Body>[\n]

message body

DEBUG httpclient.wire.content -  >> "[0x9]</SOAP-ENV:Body>[\n]"
DEBUG httpclient.wire.content -  >> "</SOAP-ENV:Envelope>"
DEBUG httpclient.wire.content -  >> "[\r][\n]"
DEBUG httpclient.wire.content -  >> "0"
DEBUG httpclient.wire.content -  >> "[\r][\n]"
DEBUG httpclient.wire.content -  >> "[\r][\n]"




> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Jarek Gawor (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2242?page=all ]
     
Jarek Gawor closed AXIS-2242:
-----------------------------

    Resolution: Invalid

I'm going to close this bug as it seems it is a server issue. The server does not understand how to deal with HTTP/1.1 and chunked encoding.

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2242) CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml

Posted by "Oleg Kalnichevski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2242?page=comments#action_12330922 ] 

Oleg Kalnichevski commented on AXIS-2242:
-----------------------------------------

I suspect what you see is the chunk header, which is perfectly valid assuming the chunk encoding is being used. If you attach the complete wirelog to this report and I will be able to tell if HttpClient generates malformed HTTP requests.

Oleg

> CommonsHTTPSender + Axis 1.2.1 generates garbage in SOAP xml
> ------------------------------------------------------------
>
>          Key: AXIS-2242
>          URL: http://issues.apache.org/jira/browse/AXIS-2242
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2, 1.2.1
>  Environment: winnt, axis 1.2.1, IBM JRE 1.3
>     Reporter: Nils-Helge Garli

>
> Looking at the DEBUG log from httpclient.wire reveals that the String "50a" is written out before the actual SOAP xml. Of course, this causes failure of parsing the SOAP request on the receiving end, and an "500: Internal Server Error".
> The debug output looks like this:
> DEBUG httpclient.wire.content -  >> "50a[\r][\n]"
> DEBUG httpclient.wire.content -  >> "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope.... (rest of soap request)
> I have no problems with Axis 1.2-RC2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira