You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Robert Kasunic <ro...@web.de> on 2005/06/02 17:28:38 UTC
How to replace default type mapping?
Hi all,
I need to replace the existing default type mapping for xsd:anyURI, i. e. get Axis to put data of that type into an instance of a special Java class.
Is that possible by putting a typeMapping like the following into the WSDD file?
<typeMapping
xmlns:ns="http://www.w3.org/2001/XMLSchema"
qname="anyURI"
type="java:xxx.MyURIClass"
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
I tried that to no avail - Axis still uses its standard datatype org.apache.axis.types.URI.
So, how can I override a default type mapping?
Thanks,
Robert
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201
Re: How to replace default type mapping?
Posted by Jeff Greif <jg...@alumni.princeton.edu>.
This works for me:
<typeMapping
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
languageSpecificType="java:java.lang.String"
encodingStyle=""
qname="xsd:anyURI"/>
Jeff
Robert Kasunic wrote:
>Hi all,
>
>I need to replace the existing default type mapping for xsd:anyURI, i. e. get Axis to put data of that type into an instance of a special Java class.
>
>Is that possible by putting a typeMapping like the following into the WSDD file?
>
><typeMapping
> xmlns:ns="http://www.w3.org/2001/XMLSchema"
> qname="anyURI"
> type="java:xxx.MyURIClass"
> serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>/>
>
>I tried that to no avail - Axis still uses its standard datatype org.apache.axis.types.URI.
>
>So, how can I override a default type mapping?
>
>Thanks,
>Robert
>__________________________________________________________
>Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
>weltweit telefonieren! http://freephone.web.de/?mc=021201
>
>
>
>
>