Re: SOAP-ERROR: Parsing Schema: unexpected <import> in schema</import>

[email protected] (superspace) Wed, 08 Jun 2011 15:43:14 +1000
Newsgroups php.soap
Message-ID <[email protected]>
 From my web service provider:

======
Your soap client is not resolving the web reference (schema import etc) 
correctly and causing this problem. Either you need to fix this 
reference issue on the client side or try a different URL structure or 
try to parse by removing the schema reference from WSDL if possible
======

Hmmph. Arghghghg


- superspace



On 08/06/11 11:28, superspace wrote:
> Hi All,
>
> I have the following in my wsdl:
>
> <xsd:import namespace="http://web-service-provider.com/2004/10/10"
> schemaLocation="ASchemas.xsd"/>
> <xsd:import namespace="http://web-service-provider.com/2004/10/10"
> schemaLocation="BSchemas.xsd"/>
> <xsd:import namespace="http://web-service-provider.com/2004/10/10"
> schemaLocation="CSchemas.xsd"/>
>
> and I get the following error:
>
> SOAP-ERROR: Parsing Schema: unexpected <import> in schema</import>
>
> when the SoapClient tries to parse the wsdl
>
> What exactly does this mean? And how can I resolve it.
>
> Thanks
>
> php version: 5.3.5
>
>
> - superspace
>
>