Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stumped Completely SOAPFault

Status
Not open for further replies.

vacunita

Programmer
Aug 2, 2001
9,166
MX
It doesn't usually happen, but I'm stumped.

I'm trying to connect to a webservice. If I do it locally on my dev machine (Ubuntu 12) It works fine, I can load the wsdl, and access the functions.

If I try on the production server (Centos 5), I get a Soap Fault.

Code:
Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ''[URL unfurl="true"]http://test.movilaction.3caravelle.net/SMS/api/nextel/receiver.php?wsdl''[/URL]

The URL works fine. You can access it directly, and you'll get the XML back. So not sure what the problem is on Pro.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
If I recall correctly SOAP is loaded with Centos 5.x but is not enabled for php as a default.

If you have root shell access, yum install php-soap should fix it.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Thanks, I did install the SOAP module. That wasn't it. Because it was loading the soap class. It just could not load the WSDL. Finally figured it out. It was an extra set of quotes around the url value in the config file it was reading to get the WSDL URL.

Once I removed those quotes it worked fine.

Strangely it worked with the quotes in local Dev.

Chalk it up to some parse_ini_file() difference between servers.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top