axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Updated: (AXIS-1295) Type mapping information incorrect for anonymous types
Date Fri, 09 Apr 2004 10:45:43 GMT
The following issue has been updated:

    Updater: Andrei Iltchenko (mailto:andrei.iltchenko@nl.compuware.com)
       Date: Fri, 9 Apr 2004 3:44 AM
    Changes:
             Attachment changed to ws_imp_test02.wsdl
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1295?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1295

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1295
    Summary: Type mapping information incorrect for anonymous types
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             Serialization/Deserialization
             WSDL processing
   Versions:
             1.2 Beta
             1.1

   Assignee: 
   Reporter: Andrei Iltchenko

    Created: Fri, 9 Apr 2004 3:43 AM
    Updated: Fri, 9 Apr 2004 3:44 AM

Description:
Currently WSDL2Java (JavaDeployWriter.java) makes no attempt to treat the QNames of anonymous
types specially. As a result, deployment descriptors with type mapping enries like the ones
below are sometimes produced:

      <typeMapping
        xmlns:ns="urn:AddressFetcher2"
        qname="ns:>DoExampleX"
        type="java:AddressFetcher2._DoExampleX"
        serializer=
           "org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer=
           "org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle=""
      />
      <typeMapping
        xmlns:ns="urn:AddressFetcher2"
        qname="ns:>DoExampleResponse"
        type="java:AddressFetcher2._DoExampleResponse"
        serializer=
           "org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer=
           "org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle=""
      />

The problem here is the ANON_TOKEN '>', which appears in both the qnames. When a client
generated from the same WSDL document as the WS component featuring the above DD makes an
attempt to call the service:

Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2beta
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 354

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <DoExampleX xmlns="urn:AddressFetcher2">
   <value1 xsi:nil="true"/>
  </DoExampleX>
 </soapenv:Body>
</soapenv:Envelope>

Axis fails to find a deserializer for the '{urn:AddressFetcher2}DoExampleX' type since it
doesn't appear in the deployment descriptor. Correcting the DD by removing the '>' character
from the qnames remedies the problem.

I am attaching a document-style WSDL document, which, when fed to WSDL2Java, highlights the
issue.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message