I am unable to get the second attachement (the stub return null). The
class where generated using wsdl2java. Below is a part of my wsdl. Do I
miss something?
Note that posting mime multipart document works well.
<wsdl:message name="MerchantDataExchange_getDocument_Request">
<wsdl:part name="merchant" type="tns:Merchant"/>
<wsdl:part name="documentIdentifier" type="tns:DocumentID"/>
</wsdl:message>
<wsdl:message name="MerchantDataExchange_getDocument_Response">
<!--<wsdl:part name="documentIdentifier" type="tns:DocumentID"/>-->
<wsdl:part name="response" type="tns:DocumentID"/>
<wsdl:part name="document" type="xsd:string"/>
<!--<wsdl:part name="document" type="xsd:string"/>-->
</wsdl:message>
<wsdl:operation name="getDocument">
<soap:operation soapAction="getDocument" style="rpc"/>
<wsdl:input name="getDocument">
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="nsMerchantDataExchange"/>
</wsdl:input>
<wsdl:output name="getDocument">
<mime:multipartRelated>
<mime:part>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="nsMerchantDataExchange"/>
</mime:part>
<mime:part>
<mime:content type="text/plain"/>
</mime:part>
</mime:multipartRelated>
</wsdl:output>
<wsdl:fault name="getDocument">
<soap:fault use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="nsMerchantDataExchange"/>
</wsdl:fault>
</wsdl:operation>