Axis2 SOAP Response元素名称骆驼案例问题 [英] Axis2 SOAP Response element name camel case issue

查看:61
本文介绍了Axis2 SOAP Response元素名称骆驼案例问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅我的WSDL和SOAP响应摘录.

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>

尽管在WSDL中,元素名称为"AddressInfo"(A为大写),但生成的响应的元素名称为"addressInfo".这是一个问题,因为现有使用者正在使用区分大小写的getElementsByTagName("AddressInfo"),因此我不应该更改使用者代码.

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?

推荐答案

冒着陈述的风险,将"addressInfo"更改为"AddressInfo".让我们知道您是否需要XSLT样式表来完成此操作.

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

这篇关于Axis2 SOAP Response元素名称骆驼案例问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆