Hello
I was wondering if someone could help me out with an error I have been
getting. I used the latest Axis 1.3 Final veraion and ran
WSDL2Java on the wsdl that my C++ webservice(using Gsoap) produced. My
service is also using dime attachments to send a small image
over to my java client. Though when I try to execute my getImage method
I get this error:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentPart
This error is produced in the _Stub.java class that came from me running
WSDL2Java.
more specifically it stops at this line:
return (xmethods.Data) _resp;
then fails and goes to the catch statement to try:
return (xmethods.Data) org.apache.axis.utils.JavaUtils.convert(_resp,
xmethods.Data.class);
which doesnt work either.
I am a newbie in terms of using attachments so I have a feeling that my
setup is somewhat wrong. I did use my activation.jar and mail.jar
that I pulled from my JBuilder libs for tomcat. But I cant be sure those
are the most up2date libraries to be using. Everything on the server
side seems
correct as it is packing the information and sending it over to the
client. It seems like I recieve a valid AttachmentPart object but it
just fails on trying to cast it to
my Data class that was generated by the WSDL2Java.
I would appreciate any suggestions or ideas.
Tom