Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6876469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:28:52+00:00 2026-05-27T04:28:52+00:00

A little while ago I noticed some Soap errors emitting from my app and

  • 0

A little while ago I noticed some Soap errors emitting from my app and I started to investigate them. Stuff like:

  • SoapClient::SoapClient(http://###.###.###.###:8080/path/to/some.wsdl): failed to open stream: HTTP request failed!
  • SoapClient::SoapClient(): I/O warning : failed to load external entity "http://###.###.###.###:8080/path/to/some.wsdl"
  • SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://###.###.###.###:8080/path/to/some.wsdl' : failed to load external entity "http://###.###.###.###:8080/path/to/some.wsdl"

It looked like a timeout on the remote server (WSDL caching was turned off). After bouncing that server and having no luck, I tried to just file_get-contents() the WSDL to see what would happen…

No dice: After about 20 seconds or so I got the same stream error:

file_get_contents(http://###.###.###.###:8080/path/to/some.wsdl) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed!

In a last ditch effort, I tried to read the contents via the curl_* functions, and I do in fact get what I’m looking for.

… tl;dr?

  • SoapClient and file_get_contents appear to be timing out (though not an explicit “Failed to open stream, connection timed out”)
  • It appears to be related to streams since curl gives me what I’m looking for.
  • I’ve got a lot of code that depends on SoapClient and file_get_contents so switching to an all curl solution isn’t really an option.
  • This is not a DNS issue as I can resolve external names fine (and my target resource is an IP)
  • allow_url_fopen is enabled.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:28:53+00:00Added an answer on May 27, 2026 at 4:28 am

    allow_url_fopen needs to be On in your PHP settings for file_get_contents to work with URLs. It’ll give you that exact error otherwise. Double-check your PHP settings by loading a page with a phpinfo(); call to make sure they’re not being overridden by a different php.ini or .htaccess file.

    I’d guess a firewall problem otherwise but you say curl works from inside PHP, which would be opening sockets in the same manner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A while ago I developed a little LAN chat app. in Java which allows
I started C# a while ago and really like it. I work with VS
Im taking over a project someone started a while ago. Im having a little
I've started to use R a little while ago and am not sure how
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry)
A little while ago I managed to get Visual Studio 2008 (C++) into a
A little while ago I created a class to deal with my LAN networking
I have been working on a Windows Mobile app for a little while now
A little while ago, I saw a question answered here regarding the fine-grained organization
Authenticating to our Ubuntu EC2 instance worked fine until a little while ago. All

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.