<wsdl:binding name="MmsSendServiceSOAP"
type="tns:MmsSendServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http "/>
<wsdl:operation name="SendMms">
<soap:operation soapAction="urn:mms/SendMms"/>
<wsdl:input>
<soap:body use="literal"/>
<mime:multipartRelated>
<mime:part name="parameterpart">
<soap:body parts="Parameters" use="literal"/>
</mime:part>
<mime:part name="attachmentpart">
<mime:content part="Attachment" type="multipart/*"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="XError">
<soap:fault name="XError" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
Axis2 does not support the above binding yet.. :(
If possible you can try using MTOM...[1]
...and with this change WSDL2Java completes successfully and the stub method
has the expected parameters.
Please note the only difference: an additional <soap:body use="literal"/>
inside the <wsdl:input>, but outside the <mime:multipartRelated>
My question: Can anyone please tell me if this is a proper fix?
Another related question....I don't see anywhere in the resulting client
stub class where I can set the MessageContext, or use any other technique to
add attachments to the request....have I missed something?
It's not possible.. It's available only through the OperationClient API..
Have a look at the blog entry titled "Use XMLBean generated objects
with Axis2" in here [2] to figure out how to data bound only to
schemas and to use operationClient respectively...
Thilina
[1] http://ws.apache.org/axis2/1_1_1/mtom-guide.html#25
[2] http://www.bloglines.com/blog/hemapani/2006_10
Many Thanks,
Darren
(P.S. I can provide the full WSDL and xsd files if that helps...I didn't
include them in this post as they're pretty big)
--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]