Biztalk 调用带Soap Head WebService的方法

    前天有位网友正好也提到了类似的问题,正好以前我也作过这方面的项目;在Biztalk Orchestration中调用对方发布的WebService;但必须提供定义soap head作做一些处理;在Biztalk Orchestration中定义的soap Port  Request接受的消息只能是传参数,并没有soap head的消息;那要如何将soap head的消息一起传递给webservice呢;
    我通过Biztalk的帮助文件可以查到ms-help://MS.BTS.2006/BTS06Developing/html/4754dd23-386b-4093-8ea4-4da6b4d9279c.htm 标题是“Using SOAP Headers in Orchestrations ” 其中有这样一段话
    You need a property schema to use defined SOAP header context properties in orchestrations. The property schema must have the target namespace of http://schemas.microsoft.com/BizTalk/2003/SOAPHeader. Each root element name in the property schema must match the root element name in the defined SOAP header. You can then set values for the context properties using the namespace of the property schema and the property name. 
    必须定义一个property schema 并且namespace必须是http://schemas.microsoft.com/BizTalk/2003/SOAPHeader,还有定一个element property schema base 为MessageContextPropertyBase
    Orchestration的设计如下
    
    https://files.cnblogs.com/neozhu/Biztalk%20Invoke%20WebService.rar
posted @   阿新  阅读(2904)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
点击右上角即可分享
微信分享提示