You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ivan Risso <iv...@gmail.com> on 2011/05/28 16:57:22 UTC
Strange characters in the response of WebSphere 6.1
Dear me I have a query that is generating quite some loss of time.
I have developed a Web Service with wdsl2java with CXF. I tried to publish
it on tomcat (development) and works perfectly. Use to prove SOAPUI as a
client. The production server is WebSphere 6.1 and when there makes public
weird stuff in response returning some strange characters I guess it does
cancel the client application (in this case is a client. net)
I happened to see request / response from tomcat and websphere
Request Tomcat
POST /ServicioClienteUnicoBS/services/ServicioClienteUnicoBSSOAP
HTTP/1.1 Accept-Encoding: gzip,deflate
Content-Type: text/xml;
charset=UTF-8
SOAPAction: "
http://api.patron.mae.com.ar/sistemasexternos/Superveille/ConsultarNroClienteCUBS
"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:6667
Content-Length: 442 53175
Response Tomcat
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 527
Date: Fri, 27 May 2011 20:38:26 GMT
II000001 No se encontraron resultados para la búsqueda realizada
Request WebSphere
POST /ServicioClienteUnicoBS/services/ServicioClienteUnicoBSSOAP
HTTP/1.1 Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "
http://api.patron.mae.com.ar/sistemasexternos/Superveille/ConsultarNroClienteCUBS
"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:6666
Content-Length: 549 51268
Response WebSphere
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Language: es-AR
Transfer-Encoding: chunked
Date: Fri, 27 May 2011 20:39:16 GMT
Server: WebSphere Application Server/6.1
*
*
*20f* II000001 No se encontraron resultados para la búsqueda realizada *0*
Bold characters are strangers in the response
Please some tips that could guide me, of course thank you very much.
Ivan
Re: Strange characters in the response of WebSphere 6.1
Posted by Daniel Kulp <dk...@apache.org>.
> Transfer-Encoding: chunked
> Date: Fri, 27 May 2011 20:39:16 GMT
> Server: WebSphere Application Server/6.1
> *
> *
> *20f* II000001 No se encontraron resultados para la búsqueda realizada *0*
>
> Bold characters are strangers in the response
The "Transfer-Encoding: chunked" is the key thing. When chunked, the chunk
size is sent first, then then byted for that chunk. A chunk size of "0"
denotes the end of the stream. What you are seeing are the chunk markers.
This is all per HTTP spec.
For the most part, this shouldn't be an issue. The HTTPURLConnection that we
use automatically decodes that so it's completely irrelevant from an
application standpoint. Pretty much all the HTTP 1.1 compliant clients
should be able to handle it automatically.
Dan
On Saturday, May 28, 2011 10:57:22 AM Ivan Risso wrote:
> Dear me I have a query that is generating quite some loss of time.
> I have developed a Web Service with wdsl2java with CXF. I tried to publish
> it on tomcat (development) and works perfectly. Use to prove SOAPUI as a
> client. The production server is WebSphere 6.1 and when there makes public
> weird stuff in response returning some strange characters I guess it does
> cancel the client application (in this case is a client. net)
>
> I happened to see request / response from tomcat and websphere
>
> Request Tomcat
>
> POST /ServicioClienteUnicoBS/services/ServicioClienteUnicoBSSOAP
> HTTP/1.1 Accept-Encoding: gzip,deflate
> Content-Type: text/xml;
> charset=UTF-8
> SOAPAction: "
> http://api.patron.mae.com.ar/sistemasexternos/Superveille/ConsultarNroClien
> teCUBS "
> User-Agent: Jakarta Commons-HttpClient/3.1
> Host: localhost:6667
> Content-Length: 442 53175
>
> Response Tomcat
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Content-Length: 527
> Date: Fri, 27 May 2011 20:38:26 GMT
>
> II000001 No se encontraron resultados para la búsqueda realizada
>
>
> Request WebSphere
> POST /ServicioClienteUnicoBS/services/ServicioClienteUnicoBSSOAP
> HTTP/1.1 Accept-Encoding: gzip,deflate
> Content-Type: text/xml;charset=UTF-8
> SOAPAction: "
> http://api.patron.mae.com.ar/sistemasexternos/Superveille/ConsultarNroClien
> teCUBS "
> User-Agent: Jakarta Commons-HttpClient/3.1
> Host: localhost:6666
> Content-Length: 549 51268
>
>
> Response WebSphere
> HTTP/1.1 200 OK
> Content-Type: text/xml; charset=UTF-8
> Content-Language: es-AR
> Transfer-Encoding: chunked
> Date: Fri, 27 May 2011 20:39:16 GMT
> Server: WebSphere Application Server/6.1
> *
> *
> *20f* II000001 No se encontraron resultados para la búsqueda realizada *0*
>
> Bold characters are strangers in the response
>
>
> Please some tips that could guide me, of course thank you very much.
>
>
> Ivan
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com