Link to home
Start Free TrialLog in
Avatar of is_numeric
is_numeric

asked on

PHP cURL wakeup SOAP

Hi

I have written a cURL app which posts XML to a SOAP service. The very first test of the day normally fails. It just times out although I don't get any errors to indicate a time out. All other posts work no problem. Its as if some service on the host needs to wake up on the initial post. What could be causing it and how could I handle this?

I was thinking of posting an empty XML envelop to the service first to wake it up but this is not a very good solution to the problem.
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

What is the service?  What is the cURL app?  What time is the first test of the day?  How do you detect the timeout?  What does the SOAP service provider have to say?  How long do you have to wait after posting an empty request, before you can get a response?  Etc.  Anything else you can provide us will be helpful, thanks.
Avatar of is_numeric
is_numeric

ASKER

The service is a Stage 1 finance application from our ecommerce site

The cURL app posts an initial application in XML to a SOAP service hosted by a bank

The first test can be any time of the day but usually before 9am

I have concluded that it may be a timeout issue because it initially takes so long before dying. The next post, and posts thereafter, are fine.

Service provide reckons its not an issue on their side.

I have upped the script-time-out value on my server to see if that helps.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was thinking about initially posting an empty envelope to wake things up

will give this a go

Cheers Ray
Thanks for the points.  I think that you're headed in the right direction, but I would probably still document the issue and show it to the service provider.  If this is happening to other clients, they are fielding a lot of unnecessary requests.  Best, ~Ray