SOAP-ERROR: Parsing WSDL

View: New views
4 Messages — Rating Filter:   Alert me  

SOAP-ERROR: Parsing WSDL

by ha75 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to connect to a webservice with WSDL but get the following
error-message:

SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension
'http://schemas.xmlsoap.org/wsdl/soap/'

This is how I try to instanciate the Client:

$client=new
SoapClient('http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl');

I am new to webservices and therefore have no idea what is the problem
and what might be a solution to this. Could anyone help me?

Thank you!
Harald

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: SOAP-ERROR: Parsing WSDL

by David Zülke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28.07.2009, at 13:34, Harald Amelung wrote:

> Hello,
>
> I am trying to connect to a webservice with WSDL but get the  
> following error-message:
>
> SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension 'http://schemas.xmlsoap.org/wsdl/soap/'
>
> This is how I try to instanciate the Client:
>
> $client=new SoapClient('http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl')
> ;
>
> I am new to webservices and therefore have no idea what is the  
> problem and what might be a solution to this. Could anyone help me?
The WSDL seems odd. It uses the soap12: prefix (and namespace)  
everywhere except for the defined headers.

Search and replace all occurences of
<soap:
with
<soap12:

and it will work.

I'm leaning towards saying that this is a bug in the WSDL, not in  
SoapClient, as the entire service is declared as a "soap12" (http://schemas.xmlsoap.org/wsdl/soap12/ 
) service, but then those headers are declared in a different protocol  
version (http://schemas.xmlsoap.org/wsdl/soap/) which has no  
corresponding binding.

- David




smime.p7s (3K) Download Attachment

Re: SOAP-ERROR: Parsing WSDL

by ha75 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,

David Zülke schrieb:

> The WSDL seems odd. It uses the soap12: prefix (and namespace)
> everywhere except for the defined headers.
>
> Search and replace all occurences of
> <soap:
> with
> <soap12:
>
> and it will work.
>
> I'm leaning towards saying that this is a bug in the WSDL, not in
> SoapClient, as the entire service is declared as a "soap12"
> (http://schemas.xmlsoap.org/wsdl/soap12/) service, but then those
> headers are declared in a different protocol version
> (http://schemas.xmlsoap.org/wsdl/soap/) which has no corresponding binding.

Thank you very much. I made a local copy of the WSDL and changed it
corresponding to your suggestion and now it works.

Harald
--
Coworking-Space Stuttgart http://coworking0711.wordpress.com

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: SOAP-ERROR: Parsing WSDL

by noddle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello ha75,

If you go to the URL listed in the new SoapClient call you make in your web browser you will get an error message from that web server saying that URL does not exist.

That is your problem.

Ciao,
Andrew

ha75 wrote:
Hello,

I am trying to connect to a webservice with WSDL but get the following
error-message:

SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension
'http://schemas.xmlsoap.org/wsdl/soap/'

This is how I try to instanciate the Client:

$client=new
SoapClient('http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl');

I am new to webservices and therefore have no idea what is the problem
and what might be a solution to this. Could anyone help me?

Thank you!
Harald

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php