Hiya,
I'm looking for a way to use JAXB with a legacy WSDL which doesn't use the
wsi:swaRef type. Here's what the message looks like:
<wsdl:message name="echoDataRequest">
<wsdl:part name="text" type="xsd:string" />
<wsdl:part name="data" type="xsd:base64Binary" />
</wsdl:message>
And my binding:operation:
<wsdl:operation name="echoData">
<soap:operation soapAction="" style="literal" />
<wsdl:input>
<mime:multipartRelated>
<mime:part name="body">
<soap:body parts="text" use="literal" />
</mime:part>
<mime:part name="data">
<mime:content part="data" type="application/octet-stream" />
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<mime:multipartRelated>
<mime:part name="body">
<soap:body parts="text" use="literal" />
</mime:part>
<mime:part name="data">
<mime:content part="data" type="application/octet-stream" />
</mime:part>
</mime:multipartRelated>
</wsdl:output>
</wsdl:operation>
Now the issue here seems to be that JAXB requires swaRef to read in an
attachment. On my incoming message I have this:
<text>Hello</text>
<data href="cid:....."/>
Is there any way to get JAXB to recognize that data is in fact an attachment
without reworking my schema?
Thanks,
- Dan
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog