定制肥皂信封 [英] Custom Soap Envelope
本文介绍了定制肥皂信封的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在出站时发送我的肥皂请求
< soapenv:Envelope
xmlns:soapenv = " ; http://schemas.xmlsoap.org/soap/envelope /"
xmlns:inb = " http://Inbound.Input " >
< soapenv:标题 / >
< soapenv:身体 >
< inb:Root >
< 记录 Id = "?" / >
< / inb:Root >
< / soapenv:身体 >
< / soapenv:信封 >
但是,我有BizTalk将它发送到BasicHttp端口
< soapenv:Envelope xmlns:soapenv =" http://schemas.xmlsoap.org/soap/envelope/">
< soapenv:Header />
< soapenv:Body>
< Root>
< Record Id ="?" />
< / Root>
< / soapenv:Body>
< / soapenv:Envelope>
我该怎么办这个?
解决方案
当你添加对服务的引用时,BizTalk将创建所有必要的模式引用和消息让你通过。
但是,如果你想自定义,这里有一个很好的参考
http://wellink.bloggingabout。 net / 2008/06/13 / howto-define-a-custom-soap-header-in-biztalk-expose-it-consume-it-even-map-they /
I need to send my soap request on outbound as
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inb="http://Inbound.Input"> <soapenv:Header/> <soapenv:Body> <inb:Root> <Record Id="?"/> </inb:Root> </soapenv:Body> </soapenv:Envelope>
But, I have BizTalk sending it on BasicHttp port as
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <Root> <Record Id="?"/> </Root> </soapenv:Body> </soapenv:Envelope>
How do I do this ?
解决方案
when you add a reference to the service, BizTalk will create all necessary schema references and messages for you to pass.
However, if you want to customize, here is a good reference
http://wellink.bloggingabout.net/2008/06/13/howto-define-a-custom-soap-header-in-biztalk-expose-it-consume-it-even-map-them/
这篇关于定制肥皂信封的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文