zoukankan      html  css  js  c++  java
  • BizTalk Exception: Cannot access a disposed object && Failed to serialize the message part "BankQuoteRequest" into the type "BankQuoteRequest"

    BizTalk Exception: Cannot access a disposed object && Failed to serialize the message part "BankQuoteRequest" into the type "BankQuoteRequest"

     

    Exception 1:

    The messaging engine was unable to resubmit a message for send port "LoanBroker_1.0.0.0_LoanBroker.LoanBrokerProcess_Port_Bank2_d4d7d47079e1d5d2" with URL "http://localhost/bankservice/bank2.asmx". Details:"Cannot access a disposed object.

    Object name: 'CEventingReadStream'.".

     

    Exception 2:

    The adapter failed to transmit message going to send port "LoanBroker_1.0.0.0_LoanBroker.LoanBrokerProcess_Port_Bank3_d4d7d47079e1d5d2" with URL "http://localhost/bankservice/bank3.asmx". It will be retransmitted after the retry interval specified for this Send Port. Details:"Failed to serialize the message part "BankQuoteRequest" into the type "BankQuoteRequest" using namespace "http://www.microsoft.com/biztalk/bank3". Please ensure that the message part stream is created properly. ".

     

    SOLUTION:

    These two BizTalk exceptions may result from that the incoming XML message instance is incompatible with the target XML schema.

     

    In this case, usually you need output the message sending to the port, and try to validate it against the target schema. You will get a violation error, then fix the source problems, and let validation succeeded. Finally, when calling the service again, everything works perfectly.

     

     

     

  • 相关阅读:
    VS2015预览版中的C#6.0 新功能(一)
    REST总结
    MVC和传统的以模板为中心的web架构比较
    实现两个select list box间item的移动和过滤
    异步编程
    简述System.Windows.Forms.Timer 与System.Timers.Timer用法区别
    C#导出EXCEL,并生成charts表
    CRC16位校验
    c# 后台GET、POST、PUT、DELETE传输发送json数据
    UDP通讯
  • 原文地址:https://www.cnblogs.com/rickie/p/740258.html
Copyright © 2011-2022 走看看