我对 SOAP 有点陌生。
在我的 WSDL 中,我有一个message
由几个元素组成的part
元素。在binding
我的 WSDL 部分中,如果soap:body
元素不包含任何parts
属性,我会收到 WS-I Basic Profile 合规性错误 BP2119:
A document-literal binding which does not specify the parts attribute, has more than one wsdl:part in the associated wsdl:message element.
我在一些文档中读到,如果没有parts
指定属性,则认为所有part
元素都包含在绑定中,但我猜这个断言没有考虑到基本配置文件的合规性。因此,我添加了一个parts
包含所有消息部分的属性:
<soap:body parts="cpName fpList" use="literal"/>
但是,我收到了 BP2111 错误:
One or more soapbind:body element(s) in a document-literal soap:binding does not have at most one part listed in the parts attribute.
所以,我必须指定零件,但我只能放一个?这两个错误不是矛盾的吗?我该如何摆脱它?
或者,我是否必须符合基本配置文件?如果没有,如何在axis2中停用这些检查?