Title: Help needed in writing a deserializer

I need some help in writing a custom deserializer. I have seen several examples in Axis code, but I am missing the big picture. I am trying to deserialize the class shown below:

public class TransactionId {
    protected AccountNumber accountNumber = 0;
    protected int version = 0;

    public TransactionId() {}

    public TransactionId(AccountNumber accountNumber, int version) {
        this.accountNumber = accountNumber;
        this.version = version ;
    }
    ... setter and getters ...
}

AccountNumber is a simple wrapper on a Java int, but it comes as an xsd:int over SOAP.

1) Which DeserializerImpl method should I override to grab this xsd:int and convert it to an AccountNumber?

2) If the default constructor and the setters were taken away, I would have to construct the TransactionId object after I have grabbed both the members. How can I do this?

Thanks.

Naresh Bhatia

Reply via email to