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/AddressingEndpointServlet"
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(AddressingCXFClientSample.java:46)
thanks in advance
Regards