我是Dynamics Axe Web服务的新手。
我通过创建以下请求从java使用DocSalesOrder服务:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"
xmlns:dat="http://schemas.microsoft.com/dynamics/2010/01/datacontracts"
xmlns:ent="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList"
xmlns:ent1="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey"
xmlns:ser="http://schemas.microsoft.com/dynamics/2008/01/services">
<SOAP-ENV:Header>
<dat:CallContext>
<dat:Company>cee</dat:Company>
<dat:Language>en-us</dat:Language>
<dat:LogonAsUser>domain\userName</dat:LogonAsUser>
<dat:MessageId>a33ee45b-5550-4118-9be3-0d8038c7fb85</dat:MessageId>
<dat:PropertyBag>
<arr:KeyValueOfstringstring>
<arr:Key>SalesId</arr:Key>
<arr:Value>00000002_050</arr:Value>
</arr:KeyValueOfstringstring>
</dat:PropertyBag>
</dat:CallContext>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ser:SalesOrderServiceReadRequest>
<ent:EntityKeyList>
<ent1:EntityKey>
<ent1:KeyData>
<ent1:KeyField>
<ent1:Field>SalesId</ent1:Field>
<ent1:Value>00000002_050</ent1:Value>
</ent1:KeyField>
</ent1:KeyData>
</ent1:EntityKey>
</ent:EntityKeyList>
</ser:SalesOrderServiceReadRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
此请求在SoapUI中正常工作。但是从java我得到错误
“javax.xml.ws.soap.SOAPFaultException:找不到与给定邮件匹配的MessageFilter。”
我在谷歌搜索过。但有些人说Soap Header中缺少Messagefilter。
但我没有在Soap Header中看到任何过滤标签。这个请求在SOAP UI中运行良好。
请帮帮我。自从过去3天以来,我一直在努力。