WSDL With duplicate Schema?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

I am fairly new to SOAP based web services and I am attempting to use the
PHP SoapClient class to consume some web services that I did not create (no
control over the WSDL).  One WSDL works great, but a second gives me an
error every time I try to create the SoapClient:

$client = new SoapClient($wsdl_url, array('trace'=>1));

gives me:

"SOAP-ERROR: Parsing Schema: element '{element}' already defined"

The thing is, I can use a program like SoapUI and the WSDL and services
work fine (no errors). I've also loaded the WSDL in a couple of WSDL
testers and they say everything is fine.  One even says that it skips
loading some schema documents because they were already loaded, and it
skipped another because other docs were already loaded for the namespace.

My question is: Is the SoapClient class doing something similar - does it
skip already loaded schemas - or is it just error-ing out once
it encounters a duplicate schema?  Is there any fix for this?

Thanks,
-Craig

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux