FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ...
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
[WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ... [message #169555] Fri, 17 September 2010 18:36 Go to next message
yawnmoth is currently offline  yawnmoth
Messages: 5
Registered: September 2010
Karma: 0
Junior Member
<?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?
Re: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ... [message #169589 is a reply to message #169555] Sat, 18 September 2010 15:01 Go to previous messageGo to next message
Jonathan Stein is currently offline  Jonathan Stein
Messages: 43
Registered: September 2010
Karma: 0
Member
Den 17-09-2010 20:36, yawnmoth skrev:

> So why can't I access it with the SoapClient constructor?

I can't help you much, but
$client = new
SoapClient('https://demo.docusign.net/API/3.0/Credential.asmx?WSDL');
works fine here with PHP 5.2.6 / Apache / Debian, so I guess you should
look for a local problem.

You could try downloading the file and let SoapClient read it from the
local file system or another URL, just to see if the problem is actually
related to the connection or the file itself.

Regards

Jonathan
Re: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ... [message #169594 is a reply to message #169555] Sat, 18 September 2010 17:44 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
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 messageGo to next message
yawnmoth is currently offline  yawnmoth
Messages: 5
Registered: September 2010
Karma: 0
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
Re: SOAP-ERROR: Parsing WSDL: Couldn't load from ... [message #169639 is a reply to message #169638] Mon, 20 September 2010 18:02 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 9/20/2010 12:00 PM, yawnmoth wrote:
> 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:
>

That is not putting them in the message itself. As to me being
unwilling - YOU'RE the one asking for help. It behooves you to be
complete in your message and not force people to look other places.

> -----------------------------------------------------
>
> 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

Much better.

OK, so you can't load the page. Your code works from here, which
indicates a problem in your PHP and/or OpenSSL installation. What
version of each are you using on your system?

Also, does this give you any clues?

http://forums.zend.com/viewtopic.php?f=8&t=399

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Illegal variable _files
Next Topic: Accessing different resultsets that were created by a mysql stored procedure
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 04 08:42:52 GMT 2024

Total time taken to generate the page: 0.02470 seconds