Is there something wrong with this XML import?

tralliertf

New Member
I am consuming a WSDL that is causing problems for my SOAP client (Python SUDS). Before developers added \[code\]<xs:import>\[/code\] into the WSDL, my SOAP client was working, but now it chokes my SOAP client.The odd thing is that some of the namespaces reference a non-existent URL for the namespace. Even though it doesn't resolve, I was able to call SOAP methods when it was working.My sense is that the import is causing problems. Can anyone verify whether this WSDL snippet looks correct or valid? This page leads me to believe that a \[code\]schemaLocation\[/code\] attribute is necessary but I wouldn't even know what to put in it.\[code\]<wsdl:definitions xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://sdk.mc.nonexistent.com" xmlns:nsv1="http://v1.sdk.mc.nonexistent.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mcxsv1="http://v1.sdk.mc.nonexistent.com/xsd" xmlns:mcxs="http://sdk.mc.nonexistent.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://sdk.mc.nonexistent.com"><wsdl:types><xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://sdk.mc.nonexistent.com/xsd"> ...</xs:schema><xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://v1.sdk.mc.nonexistent.com/xsd"> <xs:import namespace="http://sdk.mc.nonexistent.com/xsd"/> <xs:complexType name="MethodFault_v1"> <xs:choice> <xs:element minOccurs="0" name="faultMessage" type="xs:string"/> <xs:element minOccurs="0" name="event" type="mcxs:EventMoref"/> <xs:element minOccurs="0" name="eventData" type="mcxs:EventData"/> </xs:choice> </xs:complexType>...</xs:schema>\[/code\]
 
Back
Top