Or is there any possibility to change type pefore deserializing in all requests using handlers?

 

Marko K

 


From: Marko Käis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 01, 2005 10:55 AM
To: axis-user@ws.apache.org
Subject: int and integer TypeMapping

 

Hi

Because of converting from XML-RPC to SOAP I have to accept both int and integer types, but axis serializes int as java.lang.Integer and integer as java.math.BigInteger. How can I tell axis to serialize both types, say, into java.lang.Integer?

 

My current (generated) wsdd looks like this:

 

      <typeMapping

        xmlns:ns="http://namespace/myname "

        qname="ns:Query1_request"

        type="java:myNameSpace.Query1_request"

        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"

        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"

        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

      />

 

So the element in question is a bean field.

 

Example of error when user_code’s type is int:

- Could not convert java.lang.Integer to bean field 'user_code', type java.math.BigInteger

 

 

Marko K

Reply via email to