xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan <ryanrichard...@yahoo.com>
Subject Problems with Apache SOAP and BeanDeserializer
Date Thu, 21 Mar 2002 14:22:32 GMT
I have created a web service that uses a user defined
class called MyObject. It is set up to follow the
JavaBean standard (settors and gettors) and it is
included in the jar file that is in the CLASSPATH when
apache tomcat starts up. However when I run the
service I get this error:

Exception in thread "main" [SOAPException:
faultCode=SOAP-ENV:Client; msg=No Deserializer found
to deserialize a 'urn:MyObjectService:MyObject' using
e
ncoding style
'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No
Deserializer found to deseri
alize a 'urn:MyObjectService:MyObject' using encoding
style 'http://schemas.xmlsoap.org/soap/encoding/'.]
        at
org.apache.soap.rpc.Call.invoke(Call.java:246)
        at MySOAPClient2.main(MySOAPClient2.java:50)


Here is the code in my client:

    // Custom serializer/deserializer for MyObject
class.
    SOAPMappingRegistry smr = new
SOAPMappingRegistry();
    BeanSerializer myObjSer = new BeanSerializer();
              smr.mapTypes( Constants.NS_URI_SOAP_ENC,
              new QName("urn://myown.com/objects/",
"MyObject"),
              MyObject.class, myObjSer, myObjSer );

Thanks for any help
Ryan


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message