You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jean-Christophe Rioux <je...@ice.com> on 2002/10/01 19:38:22 UTC
Problem with mime attachment
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>
Re: Problem with mime attachment
Posted by Ulrich Winter <ul...@gmx.de>.
Jean-Christophe,
as far as I know (and tried) AXIS' WSDL2Java doesn't support the wsdl mime
binding at all.
Do you really get any attachments from a wsdl mime bound service with axis?
Uli
----- Original Message -----
From: "Jean-Christophe Rioux" <je...@ice.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, October 01, 2002 7:38 PM
Subject: Problem with mime attachment
> 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>
>