axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hengli Wang (Created) (JIRA)" <>
Subject [jira] [Created] (AXIS2C-1579) Wrong xsi:type in the response
Date Fri, 20 Jan 2012 19:18:40 GMT
Wrong xsi:type in the response

                 Key: AXIS2C-1579
             Project: Axis2-C
          Issue Type: Bug
          Components: wsdl2c tool
    Affects Versions: 1.6.0
            Reporter: Hengli Wang

I use axis2-1.6.1, and the responses created by the generated code has wrong xsi:type. There
are a few issues,

1. The xmlns:xsi is set to the target namespace of the last complex structure in the response.
2. The top level xsi:type is set to the type of the last complex structure in the response,
with no prefix.

Example WSDL,

        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="urn:any">
            <xs:complexType name="MyConfiguration">
                    <xs:element name="name" type="xs:string"/>
                    <xs:element minOccurs="0" name="policy" type="tns:MyPolicyConfiguration"/>
            <xs:complexType name="MyPolicyConfiguration">
                    <xs:element minOccurs="0" name="percent" type="xs:boolean"/>
            <xs:element name="get_configurationResponse">
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:MyConfiguration"/>
    <wsdl:message name="get_configurationRequest">
        <wsdl:part name="parameters" element="tns:get_configuration"/>
    <wsdl:message name="get_configurationResponse">
        <wsdl:part name="parameters" element="tns:get_configurationResponse"/>

The response is,

<soapenv:Envelope xmlns:soapenv="">
    <n:get_configurationResponse xmlns:n="urn:any"
      <n:return xsi:type="ARXShareConfiguration">
        <n:policy xsi:type="ARXSharePolicyConfiguration">

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message