Hi,

Using Axis 1.2.1

It seems to be having problems deserializing one of my classes.

Send a request from client to server. It is received ok:

DEBUG org.apache.axis.encoding.DeserializerImpl  - Got <multiRef id="id0" 
soapenc:root="0" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns2:MyUser" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns2="urn:MyURN" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><id 
xsi:type="soapenc:string">1234567</id><password 
xsi:type="soapenc:string">1234</password><surname 
xsi:type="soapenc:string">Bloggs</surname></multiRef> for ID #id0 (class = 
class org.apache.axis.message.SOAPBodyElement)

But in the object this gets deserialized to, the surname property has been set 
with the value of id. (Haven't checked what happened to the password property 
yet - didn't inlcude this in toString() for obvious reasons:

DEBUG org.apache.axis.providers.java.RPCProvider  -   value:  [EMAIL 
PROTECTED],surname=1234567]

Any ideas?

Is "id" perhaps a bad name for a property.

The class contains getters and setters for all these in the form:

setSurname(String s)
{
   this.surname = surname;
}

And I've checked the source code has nothing silly in it. 

Any ideas would be appreciated.

Thanks,
D.

Reply via email to