0
请参阅我的WSDL和SOAP响应的摘录。Axis2 SOAP响应元素名称骆驼案例问题
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”),我不应该更改使用者代码。
请让我知道我该怎么做才能解决问题?
Axis2支持不同的数据绑定,并且在Axis2中有几种不同的方式来部署服务。您不提供有关如何生成/部署服务的任何详细信息,甚至不提及正在使用的Axis2版本。没有这些信息,我认为没有人能够帮助你。 –