Hi!
I'm trying to implement some simple services that return custom objects. No problem if I do it via the Call.registerTypeMapping(...) method, e.g., as shown in the "BidBuy" sample provided with the Axis download. HOWEVER when I comment out the #registerTypeMapping() in the code and try to do the same thing via a <typeMapping /> tag --- or <beanMapping />, since it's a very simple custom object --- Axis starts insisting that it can't find the deserializer. Well, it finds BeanDeserializerFactory just fine if I pass the class object in the code, but not if I specify org.apache.axis.encoding.ser.BeanDeserializerFactory in the WSDD. (I shouldn't even have to name this object anyway since it's the default, I believe.)
Has anyone else hit this one, or does anyone know what I'm missing or doing wrong?
Much appreciated.
John Taylor
-
Axis has me stymied: Java works, WSDD doesn't ... ? (1 messages)
- Posted by: John Taylor
- Posted on: June 15 2005 08:56 EDT
Threaded Messages (1)
- Not sure but.. by Sowmya Sridhar on June 17 2005 11:10 EDT
-
Not sure but..[ Go to top ]
- Posted by: Sowmya Sridhar
- Posted on: June 17 2005 11:10 EDT
- in response to John Taylor
Make sure that the simple object you are trying to pass is really a bean. It should have a no args constructor and a get and set method for each and every param it has inside it. If it does not have this, the bean serializer/deserializer don't work. Turn on the axis deugging and see what deserializer it is trying to use for that class.