axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-4946) union with xsi:type attribute causes infinite loop in generated ADB binding
Date Tue, 17 Jul 2012 08:53:34 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sagara Gunathunga  resolved AXIS2-4946.
---------------------------------------

    Resolution: Incomplete

Please attach a WSDL to reproduce this issue. 
                
> union with xsi:type attribute causes infinite loop in generated ADB binding
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-4946
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4946
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, codegen
>    Affects Versions: 1.4.1
>            Reporter: Nathan McDonald
>
> using axis 1.4.1 adb generation for server and client.  The server returns response:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body>
> 	<ns2:quoteReservationResponse xmlns:ns2="http://www.example.com/booking.xsd">
> 	    <currencyCode>AUD</currencyCode>
> 	    <status xmlns:ns1="http://www.example.com/common.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:HoldStatus">Confirmed</status>
> 	</ns2:quoteReservationResponse>"
>    </soapenv:Body>
> </soapenv:Envelope>
> This gets client stuck in infinite loop trying to parse status.
> generation options used are:
> --noMessageReceiver -ss -s -or
> One of the people that used to work here 'hacked' the ADBBeanTemplate.xsl and changed
all the lines with:
> if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
> to
> if (reader.getAttributeValue("","type")!=null){
> which seems to have 'fixed' the issue. though not sure this is correct or could break
something else.
> Looks similar to issue AXIS2-3401

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message