Hello,

I'm using a WSDL first approach to develop my services. I'd like to use MTOM
in one of my services. This hasn't been a problem until I realized that
reading all the data into a byte[] and sending it over to my service isn't
the best option to go with. Xfire supports streaming with DataSource but I
cannot nail down my WSDL in such a way that the WsGenTask would generate me
appropriate stubs and interfaces to support DataSource as a parameter. The
solution suggested here (
http://article.gmane.org/gmane.comp.java.xfire.user/3534/match=mtom+wsdl)
didn't quite work for me.

Defining an element like this <xs:element name="teset"
type="xs:base64Binary" xmime:expectedContentTypes="application/octet-stream"
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"/> still gives me

   public String myOperation(
       @WebParam(name = "teset", targetNamespace = "
http://example.com/myservice";)
       byte[] teset);

Even if I set "image/jpeg" as the expectedContentTypes I still end up with a
byte[].

Any help or suggestions appreciated!

Thanks,
 sefanovic

Reply via email to