RPCHandler cannot find deserializer
-----------------------------------
Key: AXIS-1840
URL: http://issues.apache.org/jira/browse/AXIS-1840
Project: Axis
Type: Bug
Components: Serialization/Deserialization
Versions: 1.2RC2
Environment: Windows XP, Java 1.4.2
Reporter: Jeff Randolph
Priority: Minor
After running WSDL2Java over a WSDL that used SwA, I was having issues with the
client code complaining about not being able to find a deserializer for my data
types when deserializers were clearly registered for them. I found that in
org.apache.axis.message.RPCHandler.onStartChild(), it was trying to find
deserializers for this message (or something like it):
<ns:myElement xmlns:ns="http://blah.com">
<myParam>1</myParam>
</ns:myElement>
based one of the following:
1. {http://blah.com}myElement
2. MyElementType.class (if registered) and MyElementType
3. MyElementType
4. MyElementType.class (if registered)
But it was not trying:
{http://blah.com}MyElementType
I added a check for this and it worked!
if(dser == null) {
QName typeWithNS = new QName(namespace, type.getLocalPart());
deser = context.getDeserializerForType(typeWithNS);
}
I would have just submitted a patch but my version currently has other changes
too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira