您的位置:首页 > 其它

FW:One-way web service call in BizTalk Orchestration

2008-06-27 11:15 393 查看
One-way web service call in BizTalk Orchestration The default ASP.NET web service behavior is to return a response even if a method returns void, to allow the service to return a fault message. BizTalk Server creates a response message part for the void return. If you are in control of the Web service and it is a .NET Web service, you can specify that a response should not be returned by using the [SoapDocumentMethod(OneWay=true)] attribute, making it truly fire-and-forget. Sample code looks like this: [WebMethod] [SoapDocumentMethod(OneWay=true)] public void OneWayService () { } When you add a web reference to your Orchestration project BizTalk now configures the port type to be one-way and the port shape reflects this.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: