You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Allen Brookes <ab...@roguewave.com> on 2001/02/15 18:28:42 UTC

Returning DOM element from call

Hi,

I see in the FAQ that using 

call.setEncodingStyleURI( Constants.NS_URI_LITERAL_XML );

allows one to return a DOM element from a call.  Is a deserializer required
in such a case?  I would think that it wouldn't since a DOM node could be
considered a basic type and is already a Java class.  However, I still get
an exception

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=No
Des
erializer found to deserialize a ':return' using encoding style
'http://schemas.
xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException
: No Deserializer found to deserialize a ':return' using encoding style
'http://
schemas.xmlsoap.org/soap/encoding/'.]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at testibmsoap.main(testibmsoap.java:110)

when I don't provide a deserializer.  I would appreciate it if someone could
explain how this is supposed to work.

Thanks,
Allen Brookes
Rogue Wave Software