我有 WSDL 从
<definitions targetNamespace="http://exacttarget.com/wsdl/partnerAPI"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://exacttarget.com/wsdl/partnerAPI"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
对于这个 WSDL Eclipse Kepler 给了我 2 个 WSDL 类型错误:
错误 1:“request_headers”部分为其元素定义的“安全”值无效。元素声明必须引用模式中定义的有效值。etframework.wsdl /smartdestinations-connect/src/main/java/com/smartdestinations/exacttarget/
为元素生成此错误:
<message name="Security">
<part element="wsse:Security" name="request_headers" />
</message>
错误2:
在消息“Security”中为 SOAP 标头指定的“request_header”部分未定义。确保部件在“安全”消息中定义。
为元素生成此错误:
<binding name="SoapBinding" type="tns:Soap">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
...
<operation name="Retrieve">
<soap:operation soapAction="Retrieve" />
<input>
<soap:header message="tns:Security" part="request_header" use="literal"/>
<soap:body parts="parameters" use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
…</p>
如何消除这些错误?