Axis2 SOAP Response element name camel case issue

[亡魂溺海] 提交于 2020-01-17 04:50:10

问题


Please see the excerpt from my WSDL and SOAP response.

WSDL Definition:
----------------
<xs:complexType name="ContactInformation">
    <xs:sequence>
        <xs:element maxOccurs="unbounded" minOccurs="0" name="AddressInfo"
            nillable="true" type="AddressInfo" />
    </xs:sequence>
</xs:complexType>

SOAP Response:
--------------
<contactInformation>
    <addressInfo>
    </addressInfo>
</contactInformation>

Although in the WSDL the element name is "AddressInfo" (A is capital), the generated response is having the element name as "addressInfo". This is creating issue, as the existing consumer is using getElementsByTagName("AddressInfo") which is case sensitive, and I should not change the consumer code.

Please let me know what should I do to resolve the issue?


回答1:


At the risk of stating the obvious, change "addressInfo" into "AddressInfo". Let us know if you need an XSLT stylesheet to do it.



来源:https://stackoverflow.com/questions/12278768/axis2-soap-response-element-name-camel-case-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!