You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ekbote, Niranjan" <NE...@doubleclick.net> on 2003/04/21 15:54:41 UTC

WSDL2Java + DataHandler?

I have sent this to the user-list as well. But, I hope you guys can help me
out here. 
I have a WebService method which returns a DataHandler object. I am using
the EchoAttachments sample as a reference to implement it. However, when a
deploy the webservice and look at the generated WSDL, the DataHandler object
does not get defined well-enough. What I mean is that if I use the dynamic
invocation (using the Call object) and able to send and receive attachments
using the DataHandler object. But when I try to generate stubs using
WSDL2Java, the emitter throws a IOException complaining about the type for
DataHandler. It will help a lot to know whether this is supported at all in
WSDL2Java/Java2WSDL. And if so what steps should I take so that WSDL2Java
can understand the DataHandler object. 

Thanks! 

- N