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 bu...@apache.org on 2002/10/14 19:28:09 UTC

DO NOT REPLY [Bug 13611] New: - Conversion from AttachmentPart to DataHandler doesn't work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13611>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13611

Conversion from AttachmentPart to DataHandler doesn't work

           Summary: Conversion from AttachmentPart to DataHandler doesn't
                    work
           Product: Axis
           Version: 1.0-rc2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: rcauble@motive.com


If I have a service Foo:

public class Foo
{
   javax.activation.DataHandler getAttachment() {...}
}

And I call the service using the org.apache.axis.client.Call class:

...
call.setReturnType(javax.activation.DataHandler.class)
Object rv = call.invoke(new Object[0]);
System.out.println(rv.getClass().getName());
...

-The type of rv will be org.apache.axis.attachments.AttachmentPart.