You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sirdsoriano <so...@strands.com> on 2009/11/16 17:51:58 UTC

Consecutive messages are sent in the same POST request

i'm having a very extrange problem
i'm working with cxf-2.0.12, but i think this problem is not related to such
version
i have created a ws consumer, basic, with wsdl2java, and when testing with
created main class/method works perfect, but i two (or more) consecutive
requests are executed (regardless of reusing or not the same service and
port), both soap requests are sent in the same POST request, and the second
POST is empty, while the first returns a valid response, and the second
response throws a timeout reading input stream. And when debugging this code
!!it works!! (and i turn into madness). Also, it works if each request is
done in a different thread. 
Here the data sent in the two requests (source code is as simply as produced
by wsdl2java):

== First requests (Two requests inside) ==
POST http://vacaciones.marsans.es:80/holidays/HolidaysService.ws HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://www.marsans.es/webservices/web/holidays/getHolidays"
Accept: */*
User-Agent: Apache CXF 2.0.12
Cache-Control: no-cache
Pragma: no-cache
Host: vacaciones.marsans.es
Proxy-Connection: keep-alive
Transfer-Encoding: chunked

314
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:getHolidays
xmlns:ns1="http://www.marsans.es/webservices/web/holidays"><ns3:holidaysRequest
xmlns="java:com.marsans.webservice.holidays.bean.request"
xmlns:ns2="java:com.marsans.webservice.holidays.bean.response"
xmlns:ns3="http://www.marsans.es/webservices/web/holidays"><Departure
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><DepartureDate
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><Destination
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><Gama>1004</Gama><Nights>0</Nights><Passengers>0</Passengers><Password></Password><User></User></ns3:holidaysRequest></ns1:getHolidays></soap:Body></soap:Envelope>
0

POST http://vacaciones.marsans.es:80/holidays/HolidaysService.ws HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://www.marsans.es/webservices/web/holidays/getHolidays"
Accept: */*
User-Agent: Apache CXF 2.0.12
Cache-Control: no-cache
Pragma: no-cache
Host: vacaciones.marsans.es
Proxy-Connection: keep-alive
Transfer-Encoding: chunked

314
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:getHolidays
xmlns:ns1="http://www.marsans.es/webservices/web/holidays"><ns3:holidaysRequest
xmlns="java:com.marsans.webservice.holidays.bean.request"
xmlns:ns2="java:com.marsans.webservice.holidays.bean.response"
xmlns:ns3="http://www.marsans.es/webservices/web/holidays"><Departure
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><DepartureDate
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><Destination
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/><Gama>1004</Gama><Nights>0</Nights><Passengers>0</Passengers><Password></Password><User></User></ns3:holidaysRequest></ns1:getHolidays></soap:Body></soap:Envelope>
0

== First response === 

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"
SOAPAction: "http://www.marsans.es/webservices/web/holidays/getHolidays"
X-Powered-By: Servlet/2.4 JSP/2.0

96a
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><m:getHolidaysResponse
xmlns:m="http://www.marsans.es/webservices/web/holidays"><m:holidaysResponse
xmlns:java="java:com.marsans.webservice.holidays.bean.response"><java:Error></java:Error><java:Offer><java:Caducidad></java:Caducidad><java:CodigoOferta>2113</java:CodigoOferta><java:Descripcion>Circuito
11  días. Incluido vuelo, estancia, circuito
programado.</java:Descripcion><java:Financiacion></java:Financiacion><java:Imagen>http://www.bbvavacaciones.com/media/images/es/circuitos/pequenas/circuito_2113.gif</java:Imagen><java:Importe>1997.0</java:Importe><java:Prioridad></java:Prioridad><java:Proveedor>Club
5*</java:Proveedor><java:Titulo>Egipto:Esplendor
Nubio</java:Titulo></java:Offer><java:Offer><java:Caducidad></java:Caducidad><java:CodigoOferta>1494</java:CodigoOferta><java:Descripcion>Circuito
12  días. Incluido vuelo, estancia en
hoteles.</java:Descripcion><java:Financiacion></java:Financiacion><java:Imagen>http://www.bbvavacaciones.com/media/images/es/circuitos/pequenas/circuito_1494.gif</java:Imagen><java:Importe>3424.0</java:Importe><java:Prioridad></java:Prioridad><java:Proveedor>Mundicolor</java:Proveedor><java:Titulo>Patagonia
Chilena
</java:Titulo></java:Offer><java:Offer><java:Caducidad></java:Caducidad><java:CodigoOferta>1737</java:CodigoOferta><java:Descripcion>Estancia
7 días. Incluido vuelo, estancia en hotel de 4* y
traslados.</java:Descripcion><java:Financiacion></java:Financiacion><java:Imagen>http://www.bbvavacaciones.com/media/images/es/circuitos/pequenas/circuito_1939.gif</java:Imagen><java:Importe>2157.0</java:Importe><java:Prioridad></java:Prioridad><java:Proveedor>Mundicolor</java:Proveedor><java:Titulo>Argentina:Buenos
Aires</java:Titulo></java:Offer><java:Offer><java:Caducidad></java:Caducidad><java:CodigoOferta>2044</java:CodigoOferta><java:Descripcion>Circuito
12  días. Incluido vuelo, estancia, circuito
programado.</java:Descripcion><java:Financiacion></java:Financiacion><java:Imagen>http://www.bbvavacaciones.com/media/images/es/circuitos/pequenas/circuito_2044.gif</java:Imagen><java:Importe>1857.0</java:Importe><java:Prioridad></java:Prioridad><java:Proveedor>Mundicolor</java:Proveedor><java:Titulo>Recorriendo
California</java:Titulo></java:Offer></m:holidaysResponse></m:getHolidaysResponse></soapenv:Body></soapenv:Envelope>
0


== Second request ==

POST http://vacaciones.marsans.es:80/holidays/HolidaysService.ws HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://www.marsans.es/webservices/web/holidays/getHolidays"
Accept: */*
User-Agent: Apache CXF 2.0.12
Cache-Control: no-cache
Pragma: no-cache
Host: vacaciones.marsans.es
Proxy-Connection: keep-alive
Transfer-Encoding: chunked


== No second response, input stream read timeout

-- 
View this message in context: http://old.nabble.com/Consecutive-messages-are-sent-in-the-same-POST-request-tp26375319p26375319.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Consecutive messages are sent in the same POST request

Posted by sirdsoriano <so...@strands.com>.
Exact!!=)

dkulp wrote:
> 
> On Tue November 17 2009 5:54:16 am sirdsoriano wrote:
>> For those who don't sleep with this, as simply as "AllowChunking=false"
>> 
> 
> Thanks for the update.   Was just looking at your first email and was
> going to 
> suggest that.   It looks like you are using a proxy server and some of the 
> proxy servers have issues with chunking.
> 
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://old.nabble.com/Consecutive-messages-are-sent-in-the-same-POST-request-tp26375319p26393261.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Consecutive messages are sent in the same POST request

Posted by Daniel Kulp <dk...@apache.org>.
On Tue November 17 2009 5:54:16 am sirdsoriano wrote:
> For those who don't sleep with this, as simply as "AllowChunking=false"
> 

Thanks for the update.   Was just looking at your first email and was going to 
suggest that.   It looks like you are using a proxy server and some of the 
proxy servers have issues with chunking.


-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Consecutive messages are sent in the same POST request

Posted by sirdsoriano <so...@strands.com>.
For those who don't sleep with this, as simply as "AllowChunking=false"

-- 
View this message in context: http://old.nabble.com/Consecutive-messages-are-sent-in-the-same-POST-request-tp26375319p26387876.html
Sent from the cxf-user mailing list archive at Nabble.com.