Jump to content

Recommended Posts

Hi

 

I use SOAPCLIENT to access a 3rd party site for data and it randonly gets stuck for a short time. Does anyone know why SOAP would do this?

 

It could be traffic at the 3rd party site but that really shouldn't delay the request much. Is SOAPCLIENT bad at accessing busy servers and should I change to a different method? What is the fastest and most efficient method of getting through to a WSDL XML data source?

 

My code is pretty straightforward so maybe I need to force a setting or ask host to change something? The WSDL file should be a cached version so it shouldn't matter that it is from a HTTPS source I guess. I'm perplexed what causes the random hangs.

 

Thanks - my code is as follows (sorry if this is in the wrong forum)

 

$soapclient = new SoapClient('https://www.somesite.etc.etc.etc/file.wsdl' ,array("trace"=>1,"connection_timeout"=>5));

 

Link to comment
https://forums.phpfreaks.com/topic/256029-soap-randomly-hangs/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.