You have a few things wrong with your WSDL:
First: You must import import the
http://mtomserver.sourceforge.net/wsdl/soapserver.xsd namespace into
the http://mtomserver.sourceforge.net/wsdl/soapserver.wsdl schema.
Second: You want to define your binary fields as base64Binary fields,
not as xop:Include fields. (The SOAP message will be encoded to
replace the binary fields with xop:Include elements, but you shouldn't
define it that way.) You must define the field as if it were going to
be encoded within the SOAP element, e.g.,
<xs:element name="photo"
type="xmime:base64Binary"
xmime:expectedContentType="image/jpeg image/png" />
And since you are using MTOM, you should not define the "attachments"
parts in your WSDL messages, nor should you define the
MIME:MultipartRelated bindings. MTOM will automatically encode the
binary elements as MIME attachments if you engage the optimization
feature.
See the XOP [1] and the media type [2] specs for more information:
[1] http://www.w3.org/TR/xop10/
[2] http://www.w3.org/TR/xml-media-types/
Anne
On 10/29/07, Schmilinsky, Remsy <[EMAIL PROTECTED]> wrote:
>
>
>
> Can you please help me compile with wsdl2java the attached wsdl ?
>
> I get lots of errors.
>
> thanks
>
> <<mtomserver.wsdl>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]