Re: SOAP-ERROR: Parsing WSDL: Couldn't load from ... [message #169638 is a reply to message #169594] |
Mon, 20 September 2010 16:00 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to previous message](/forum/theme/default/images/down.png) |
yawnmoth
Messages: 5 Registered: September 2010
Karma:
|
Junior Member |
|
|
On Sep 18, 12:44 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 9/17/2010 2:36 PM, yawnmoth wrote:
>
>
>
>> <?php
>> $client = new SoapClient('https://demo.docusign.net/API/3.0/
>> Credential.asmx?WSDL');
>> ?>
>
>> That PHP file gets me the following errors:
>
>> http://pastebin.com/b3xQBLXD
>
>> If there wasn't anything at that URL that would be the problem, but as
>> is, there is a WSDL XML at that URL. Going to it with my browser
>> confirms that. I can even access that URL with PHP / curl as the
>> following demonstrates:
>
>> <?php
>> $curl = curl_init();
>> curl_setopt($curl, CURLOPT_URL, 'https://demo.docusign.net/API/3.0/
>> Credential.asmx?WSDL');
>> curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
>> curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
>> var_dump(curl_exec($curl));
>> ?>
>
>> So why can't I access it with the SoapClient constructor?
>
> I have no idea. If you can't put error messages in your message, I
> won't bother to go looking through the internet for them.
I did put the error messages in my post. Let me quote the relevant
portion of the original message:
> That PHP file gets me the following errors:
>
> http://pastebin.com/b3xQBLXD
I put them on pastebin.com and not in the message, itself, because the
error messages are fairly lengthy. If I included them how would
people know when the error message ended and my own comments resumed?
Maybe I could have delienated the start and stop of the error message
with --------------------------- or something. Or maybe I could have
just put them on pastebin.com, which is what I did. But since you are
unwilling to visit the URL, here are the messages in full:
-----------------------------------------------------
Warning: SoapClient::SoapClient(): I/O warning : failed to load
external entity
"https://demo.docusign.net/API/3.0/Credential.asmx?WSDL" in C:
\php5\test.php on
line 2
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Coul
dn't load from 'https://demo.docusign.net/API/3.0/Credential.asmx?
WSDL' : failed
to load external entity "https://demo.docusign.net/API/3.0/
Credential.asmx?WSDL
"
in C:\php5\test.php:2
Stack trace:
#0 C:\php5\test.php(2): SoapClient->SoapClient('https://demo.do...')
#1 {main}
thrown in C:\php5\test.php on line 2
|
|
|