Hi Andrei!
I monitor the exchanged messages and the service receives the request and
correctly sends the answer to the decoupled-endpoint (http-conduit). When
the service processing delays more than 60segs, a timeout occurs on the
client. I attach the Client Project
regards
Guzmán
-----Mensaje original-----
From: Andrei Shakirin
Sent: Saturday, March 15, 2014 9:15 AM
To: users@cxf.apache.org
Subject: RE: http-conduit timeout for long delay decoupled responses
Hi,
For decoupled responses timeout should not be relevant - response will be
sent using separate HTTP channel.
You are sure that request arrives the service and service sends the
response?
Try to configure TCP monitor to catch network communication and see what
happens.
Regards,
Andrei.
-----Original Message-----
From: Guzmán Llambías [mailto:guzman.llamb...@pyxisportal.com]
Sent: Freitag, 14. März 2014 15:59
To: users@cxf.apache.org
Subject: http-conduit timeout for long delay decoupled responses
Hi guys!
I tried using the http-conduit and worked fine but when the service has a
long
delay to send the answer, a timeout error occurs. I tried to use the
receiveTimeout attribute but it didn't work. Could you please tell me how
to
config this timeout?
Here's my cxf.xml configuration:
<http:conduit
name="{http://abitab.com.uy/servicios/addressing}AddressingSampleImplPort.
http-conduit">
<http:client
DecoupledEndpoint="http://localhost:28080/AddressingEndpoint/AddressingEnd
pointServlet"
ReceiveTimeout="300000" />
</http:conduit>
And here's my client code:
URL wsdlURL = new
URL("http://localhost:8080/AbitabWSSamples/AddressingSampleImpl?wsdl");
AddressingSampleImplService service = new
AddressingSampleImplService(wsdlURL);
AddressingSample port = service.getAddressingSampleImplPort();
int result = port.add(1, 2);
System.out.println(result);
the service publishes the ws-addressing policy, that's why I only config
the http-
conduit
here's the log:
INFO: Loaded configuration file cxf.xml.
14/03/2014 11:51:30 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://abitab.com.uy/servicios/addressing}AddressingSampleImplService
from
WSDL: http://localhost:8080/AbitabWSSamples/AddressingSampleImpl?wsdl
14/03/2014 11:51:30 AM org.apache.cxf.transport.http.HTTPConduit
setUpDecoupledDestination
INFO: creating decoupled endpoint:
http://localhost:28080/AddressingEndpoint/AddressingEndpointServlet
14/03/2014 11:52:30 AM org.apache.cxf.endpoint.ClientImpl waitResponse
ADVERTENCIA: Timed out waiting for response to operation
{http://addressing.test/}add.
Exception in thread "main" java.lang.NullPointerException
at com.sun.proxy.$Proxy40.add(Unknown Source)
at
test.addressing.cxf.clientsample.AddressingCXFClientSample.main(AddressingC
XFClientSample.java:46)
thanks in advance
Regards