我遇到了从BizTalk 2010调用Web服务的问题。我已经阅读了一个教程,许多关于类似问题的论坛并遵循了建议。到目前为止,我无法让BizTalk成功使用所提供的Web服务。
发送端口设置详细信息。
WCF类型:WCF-WSHttp
Web服务用于业务流程,逻辑端口使用“稍后指定”选项
端口是静态端口
逻辑端口中使用的操作名称设置为“LogError” -
<wsdl:operation name="LogError">
<soap:operation soapAction="https://www.practicevelocity.com/PVLoggingService/LogError" style="document" />
<wsdl:input>
https://www.practicevelocity.com/PVLoggingService/LogError
我似乎缺少/不了解哪些配置项目不合适 还有其他建议吗?
Error from Event Properties [ Windows log > Application ]
Log Name: Application
Source: BizTalk Server
Date: 9/5/2013 4:30:22 PM
Event ID: 5743
Task Category: BizTalk Server
Level: Warning
Keywords: Classic
User: N/A
Computer: xxxxxxxxxxxxxxxxx.PracticeVelocity.com
Description:
The adapter failed to transmit message going to send port "SendPort_PVInfoLoggingService" with URL "http://devlogging.practicevelocity.com/13_3/EDILogService.asmx?". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.FaultException: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:MustUnderstand</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">SOAP header Action was not understood.</soap:Text></soap:Reason></soap:Fault></soap:Body></soap:Envelope>
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)".
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="BizTalk Server" />
<EventID Qualifiers="32960">5743</EventID>
<Level>3</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-09-05T21:30:22.000000000Z" />
<EventRecordID>58220</EventRecordID>
<Channel>Application</Channel>
<Computer>xxxxxxxxxxxxxxx.PracticeVelocity.com</Computer>
<Security />
</System>
<EventData>
<Data>SendPort_PVInfoLoggingService</Data>
<Data>http://devlogging.practicevelocity.com/13_3/EDILogService.asmx?</Data>
<Data>System.ServiceModel.FaultException: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:MustUnderstand</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">SOAP header Action was not understood.</soap:Text></soap:Reason></soap:Fault></soap:Body></soap:Envelope>
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)</Data>
</EventData>
</Event>
答案 0 :(得分:1)
如果您使用添加生成的项目,请使用WCF服务并指向端点,它应该生成两个绑定文件{servicename} .BindingInfo.xml和{servicename} _Custom.BindingInfo.xml。您可以导入其中一个,然后您应该有一个完全正确配置的端口。该名称将是一个您想要重命名的自动生成的名称。