biztalk - How to send the receive port name to a SQL procedure using WCF-Custom send port - Stack Overflow

admin2025-04-18  3

I want to send the receive port name to a SQL procedure. I am using the message body shown here, but I get an event log error

The start element with name "BTS.ReceivePortID" and namespace "; was unexpected"

I'm trying this as the message body. I want the receive port name to be passed to the SQL stored procedure. It will pass the body correctly if I remove the source section.

<CustEDI_MiscDoc_save_to_queue_prc xmlns=";>
    <xmlData>
        <bts-msg-body xmlns="; encoding="string"/>
    </xmlData>
    <source>
        <BTS.ReceivePortID  xmlns="; encoding="string"/>
    </source>
</CustEDI_MiscDoc_save_to_queue_prc>

If I remove the <Source> section, the send port will work and send the body of the message to the SQL stored procedure. Adding the <Source> element that should send the Receive port ID causes an error.

转载请注明原文地址:http://anycun.com/QandA/1744935999a89718.html