Axis developers have solved the problem about mime type mapping! (because I told'em to do so! ;) ) Dario
Dario Di Minno ha scritto:
Thanks for the link, it has been very useful for me.
The wsdl example reports two different mime types for attachment, image/jpeg and application/octet-stream.
To make the WSDL2Java work it is necessary to modify the second to "application/octetstream". I think it is a bug in the
implementation of WSDL2Java because the official mime type is "application/octet-stream".
I hope that axis developers will fix this to be more wsdl conformant!
Anyway, the author of the article is not using WSDL2Java and so he has the mapping
application/octet-stream ---> DataHandler
while with WSDL2Java the mapping is
application/octetstream ---> org.apache.axis.attachments.OctetStream
so in the implementation of the client it is not possible to pass to sendOctet a DataHandler, but you should pass
a org.apache.axis.attachments.OctetStream object instead.
Did someone have similar experiences?
Dario
[EMAIL PROTECTED] ha scritto:
Hi Dario
I had (or still have...) the same problem and found the following link:
http://www-106.ibm.com/developerworks/webservices/library/ws-tip-soapjax.html
I didn't get it to work yet, but it might give you an idea where to start.
Good luck, and I would appreciate if you let me know when you get it to work.
Thomas
-----Ursprüngliche Nachricht-----
Von: Dario Di [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. März 2004 08:55
An: [EMAIL PROTECTED]
Betreff: declare attachment in wsdl
Hi axis users, I'd like to know if is there a way to declare in the wsdl that a client of a ws has to send an attachment as a parameter of the message, so that when I use WSDL2Java I can use the portType in this way:
result = port.myMethod(dh, <other parameters>);
where dh is a DataHandler or some other way to reference an attachment.
Please help me!
Dario
______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/