I have a response which uses '<Include
xmlns="http://www.w3.org/2004/08/xop/include" href="..." />'
and suds
throws a "Type not found: 'Include'" exception. Adding an import
doctor with the w3 xop include namespace doesn't help at all, nor the
Import.bind trick. Any ideas?
Regards,
Antti
----
Here's the stripped-down SOAP response:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<exampleResponse
xmlns="http://example.com/UserService">
<out
xmlns="http://example.com/UserService">
<profileImage xmlns="http://ws.example.com"
xmlns:ns1="http://www.w3.org/2004/11/xmlmime"
ns1:mimeType="application/octet-stream">
<Include
xmlns="http://www.w3.org/2004/08/xop/include"
href="cid:1274252125186294-1381204317@http://www.w3.org/2001/XMLSchema"
/>
</profileImage>
</out>
</getUserByIdResponse>
</soap:Body>
</soap:Envelope>
Here's are the related parts of the WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://example.com/UserService"
xmlns:tns="http://example.com/UserService"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://ws.example.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://example.com/UserService">
<xsd:element name="exampleResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1"
name="out"
nillable="true"
type="ns1:User"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://ws.example.com">
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element minOccurs="0"
name="profileImage"
nillable="true"
type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="exampleResponse">
<wsdl:part name="parameters" element="tns:exampleResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="UserServicePortType">
<wsdl:operation name="getUserById">
<wsdl:input name="getUserByIdRequest"
message="tns:getUserByIdRequest">
</wsdl:input>
<wsdl:output name="exampleResponse"
message="tns:exampleResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UserServiceHttpBinding"
type="tns:UserServicePortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getUserById">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getUserByIdRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="exampleResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="UserService">
<wsdl:port name="UserServiceHttpPort"
binding="tns:UserServiceHttpBinding">
<wsdlsoap:address
location="http://test.example.com/UserService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>