【问题标题】:BizTalk 2010 WCF-WSHttp configBizTalk 2010 WCF-WSHttp 配置
【发布时间】:2013-09-06 15:53:43
【问题描述】:

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

发送端口设置详细信息。

  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. General 选项卡,对于 SOAP Action 标头、文本框的配置,使用上面的字符串指定单个操作“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>

【问题讨论】:

  • 您的异常消息是“无法理解 SOAP 标头操作”。很可能您使用了错误的操作。您可以尝试将您的服务导入 SoapUI(或类似的东西),您将看到有效的操作。

标签: web-services wcf soap biztalk biztalk-2010


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多