WCF-WSHTTP在单个服务中为两个方法接收两个位置(.svc) [英] WCF-WSHTTP two receive locations for two methods in a single service (.svc)

查看:52
本文介绍了WCF-WSHTTP在单个服务中为两个方法接收两个位置(.svc)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建两个不同的WCF-WSHTTP接收位置,一个用于我的Web服务的每个方法(.svc)。 原因是,每种方法都需要不同的管道和不同的方式来从SOAP正文中选择消息。  我想保持在服务中分组的方法在逻辑上与它们相关。

似乎地址URI可以指定为"/VirtualFolder/MyService.svc"但我怎样才能包含/过滤方法以允许创建两个接收位置?

谢谢,
Allan。

解决方案

您需要使用BizTalk SOAP操作映射来区分要在端口中调用的操作方法。

以下是有关如何执行此操作的一些信息: http ://msdn.microsoft.com/en-us/library/dd788400(BTS.10)的.aspx

此链接还为WCF适配器记录了这一点: http ://msdn.microsoft.com/en-us/library/bb967002(BTS.10)的.aspx

感谢, 

I need to create two different WCF-WSHTTP receive locations, one for each method of my web service (.svc).  Reason being, each method needs a different pipeline and different way to select the message from the SOAP body.  I want to keep the methods grouped in the service as logically they are related.

It seems the Address URI can be specified as "/VirtualFolder/MyService.svc" but how can I include/filter on the methods to allow two receive locations to be created?

Thanks,
Allan.

解决方案

You need to use the BizTalk SOAP action mapping to distinguish which operation method you want to call in the port.

Here is some information on how to do this: http://msdn.microsoft.com/en-us/library/dd788400(BTS.10).aspx.

This link also documents this for the WCF adapters: http://msdn.microsoft.com/en-us/library/bb967002(BTS.10).aspx.

Thanks, 


这篇关于WCF-WSHTTP在单个服务中为两个方法接收两个位置(.svc)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆