0

我在从 BizTalk 2010 调用 Web 服务时遇到问题。我已经阅读了一个教程、许多关于类似问题的论坛并遵循了建议。到目前为止,我无法让 BizTalk 成功使用提供的 Web 服务。

发送端口设置详细信息。

  1. WCF 类型:WCF-WSHttp

  2. Web 服务用于编排,逻辑端口使用“稍后指定”选项

  3. 端口是静态端口

  4. 逻辑端口中使用的操作名称设置为 'LogError' -

<wsdl:operation name="LogError"> <soap:operation soapAction="https://www.practicevelocity.com/PVLoggingService/LogError" style="document" /> <wsdl:input>

  1. 常规选项卡,用于配置 SOAP 操作标头、文本框,使用上面的字符串指定单个操作“soapAction”,即 - 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: &lt;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"&gt;&lt;soap:Body&gt;&lt;soap:Fault&gt;&lt;soap:Code&gt;&lt;soap:Value&gt;soap:MustUnderstand&lt;/soap:Value&gt;&lt;/soap:Code&gt;&lt;soap:Reason&gt;&lt;soap:Text xml:lang="en"&gt;SOAP header Action was not understood.&lt;/soap:Text&gt;&lt;/soap:Reason&gt;&lt;/soap:Fault&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)</Data>
  </EventData>
</Event>
4

1 回答 1

1

如果您使用添加生成的项目,请使用 WCF 服务并将其指向端点,它应该为您生成两个绑定文件 {servicename}.BindingInfo.xml 和 {servicename}_Custom.BindingInfo.xml。您可以导入其中之一,然后您应该拥有一个完整且正确配置的端口。该名称将是您要重命名的自动生成的名称。

于 2013-09-10T23:17:22.360 回答