Forum Discussion
sherington
16 years agoOccasional Contributor
Here's the WSDL as requested...
Server is Tomcat 6.0 running on JDK 1.6.0_14.
SoapUI runs on JDK 1.6.0_14.
SOAP version 1.1.
Spring-WS 1.5.8.
It's not a perfect schema since I'm just testing/experimenting at the moment. I used Eclipse's web tools to generate the schema part, and Spring-WS auto-generates the WSDL for that schema.
The response doesn't validate against the schema when using mtom because of the include element that gets generated for the mtom attachment.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://www.example.com/mtom" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.com/mtom" targetNamespace="http://www.example.com/mtom">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified" targetNamespace="http://www.example.com/mtom">
<element name="GetDocumentRequest">
<complexType>
<sequence>
<element maxOccurs="1" minOccurs="1" name="documentId" type="string"/>
</sequence>
</complexType>
</element>
<element name="GetDocumentResponse">
<complexType>
<sequence>
<element maxOccurs="1" minOccurs="0" name="DocumentInfo" type="tns:DocumentInfoType"/>
<element name="PdfFile" type="base64Binary" xmime:expectedContentTypes="*/*"/>
</sequence>
</complexType>
</element>
<complexType name="DocumentInfoType">
<sequence maxOccurs="1" minOccurs="0">
<element name="Id" type="string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="GetDocumentRequest">
<wsdl:part element="tns:GetDocumentRequest" name="GetDocumentRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetDocumentResponse">
<wsdl:part element="tns:GetDocumentResponse" name="GetDocumentResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="mtom">
<wsdl:operation name="GetDocument">
<wsdl:input message="tns:GetDocumentRequest" name="GetDocumentRequest">
</wsdl:input>
<wsdl:output message="tns:GetDocumentResponse" name="GetDocumentResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="mtomSoap11" type="tns:mtom">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetDocument">
<soap:operation soapAction=""/>
<wsdl:input name="GetDocumentRequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="GetDocumentResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="mtomService">
<wsdl:port binding="tns:mtomSoap11" name="mtomSoap11">
<soap:address location="/mtom/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Server is Tomcat 6.0 running on JDK 1.6.0_14.
SoapUI runs on JDK 1.6.0_14.
SOAP version 1.1.
Spring-WS 1.5.8.
It's not a perfect schema since I'm just testing/experimenting at the moment. I used Eclipse's web tools to generate the schema part, and Spring-WS auto-generates the WSDL for that schema.
The response doesn't validate against the schema when using mtom because of the include element that gets generated for the mtom attachment.