Java cxf Magento SOAP请求无效:完整操作名
我正在尝试使用在ApacheKaraf中运行的ApacheCXF中的ApacheCXF与Magento的SOAP Api(v2,支持ws-I遵从性)通信。服务实现是使用“cxf codegen插件”maven插件生成的 “登录”操作的结果请求如下所示:Java cxf Magento SOAP请求无效:完整操作名,java,soap,apache-camel,cxf,apache-karaf,Java,Soap,Apache Camel,Cxf,Apache Karaf,我正在尝试使用在ApacheKaraf中运行的ApacheCXF中的ApacheCXF与Magento的SOAP Api(v2,支持ws-I遵从性)通信。服务实现是使用“cxf codegen插件”maven插件生成的 “登录”操作的结果请求如下所示: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:Magento"> <soap:Body>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:Magento">
<soap:Body>
<ns:login>
<ns:loginParam>
<username>username</username>
<apiKey>apikey</apiKey>
</ns:loginParam>
</ns:login>
</soap:Body>
</soap:Envelope>
现在更让人困惑的是:如果此客户机在ApacheKaraf之外使用(例如在IntelliJ调试器中使用独立的ApacheCamel上下文),soap请求看起来与预期的一样,我的api调用也可以工作
我错过了什么 你能解决这个问题吗?如果是,请在此处添加解决方案?
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:Magento">
<soap:Body>
<ns:loginParam>
<username>username</username>
<apiKey>apikey</apiKey>
</ns:loginParam>
</soap:Body>
</soap:Envelope>
<camelcxf:cxfEndpoint ...>
[...]
<camelcxf:properties>
[...]
<entry key="wrapped" value="false" />
</camelcxf:properties>
</camelcxf:cxfEndpoint>
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)