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.

Posted on 2008-06-27 11:15 upzone 阅读(21) 评论(0)  编辑 收藏 所属分类: BizTalk

标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      


相关链接: