axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphael Drüner (JIRA) <>
Subject [jira] Updated: (AXIS-1727) wrong restriction in type mapping deployment
Date Wed, 13 Apr 2005 09:10:20 GMT
     [ ]

Raphael Drüner updated AXIS-1727:

    Attachment: testcase.war

Added an testcase to demonstrate the problem.

The posted WAR is mainly axis standard stuff except for the WEB-INF/server-config.wsdd and
the files in WEB-INF/classes/testcase.
Put this WAR file into your tomcat webapp dir (tested with Tomcat 5.0.28 and Sun JDK 1.4.1_02
on Windows XP) and post the following SOAP Request to http://localhost:8080/testcase/services/calc

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="http://www" xmlns:xsd="">

This will cause a

        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(
        at org.apache.axis.encoding.DeserializationContext.startElement(
        at org.apache.axis.message.SAX2EventRecorder.replay(
        at org.apache.axis.message.MessageElement.publishToHandler(
        at org.apache.axis.message.RPCElement.deserialize(
        at org.apache.axis.message.RPCElement.getParams(

If you replace the JARs in WEB-INF/lib (which are axis 1.2 RC3) with their axis 1.1 counterparts,
the service will work as expected and returns:

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="http://www.w" xmlns:xsi="" >
 <addWrappedResponse soapenv:encodingStyle=""
 <addWrappedReturn xsi:type="xsd:int" >14</addWrappedReturn>

BTW: If you move the two type mappings in server-config.wsdd to the <service> element,
the service will work too (because the bug only affects global type mappings).

> wrong restriction in type mapping deployment
> --------------------------------------------
>          Key: AXIS-1727
>          URL:
>      Project: Axis
>         Type: Bug
>   Components: Deployment / Registries
>     Versions: 1.2RC2
>  Environment: all
>     Reporter: Raphael Drüner
>     Priority: Critical
>  Attachments: testcase.war
> The fix of bug AXIS-1271 causes the following bug:
> It is not possible to deploy more than one type mapping for a specific QName. The JAX-RPC
1.1 Spec (15.3) implicitly defines the following elements as key for a (de)serializer:
> - The encoding URI
> - The XML QName
> - The full java class name.
> The WSDDDeployment axis class only uses the qname (and since 1.2 RC2 the encoding URI
too) as key. The flexibility of having more than one java class that maps to a single QName
(e.g. xsd:string) is necessary to integrate legacy systems.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message