从 BizTalk 2006R1 使用 WCF

发布于 2024-09-01 14:49:53 字数 288 浏览 0 评论 0原文

我需要在 BizTalk 2006R1 中创建一个将使用 WCF basicHTTP Web 服务的编排。有人知道如何执行此操作吗? WCF 服务已由另一个团队创建,但我可以请求他们创建一个具有绑定配置集的附加端点,以便可以从 BizTalk SOAP 适配器进行调用。

我刚刚创建了一个简单的测试 basicHTTP 服务,该服务在从命令行客户端测试时运行良好。当我进入 BizTalk 添加 Web 引用时,我可以浏览到该服务,但随后收到一条消息“无法添加 Web 引用”,然后它就崩溃了!

I need to create an Orchestration in BizTalk 2006R1 that will consume a WCF basicHTTP web service. Does anyone have a pointers on how to do this please? The WCF service has been created by another team but I am able to request that they create an additional endpoint with binding configuration set to make calling from BizTalk SOAP adapter possible.

I just created a simple test basicHTTP service that runs fine when tested from a command line client. When I got to BizTalk add web reference I am able to browse to the service but then get a message "Failed to add web reference" and it bombs out!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

内心旳酸楚 2024-09-08 14:49:53

添加 Web 引用时,Biztalk 会从服务中读取元数据。

为此,必须启用元数据交换,这是通过 mex 标签和行为配置完成的。

尝试浏览您的服务以检查是否启用了元数据交换。

When you add a web reference, Biztalk reads the metadata from the service.

For this to work meta data exchange must be enabled, this is done with the mex tag and the behaviour configuration.

Try to browse your service to check if the meta data exchange is enabled.

可爱咩 2024-09-08 14:49:53

“添加 Web 服务引用”存在一些问题,并且

<WSDL:Definition>

WSDL 中的根元素上缺少目标命名空间。

在 WCF 中,您可以使用服务类(而不是契约)上的命名空间声明和 ServiceBehavior 来控制此目标命名空间。

[ServiceBehavior(Namespace="urn:yournamespace")]
public class YourService : IYourContract
{  }

尝试添加此内容,然后再次运行“添加 Web 服务引用”向导。

There are some issues with the 'Add Webservice Reference' and the absense of targetnamespace on the root

<WSDL:Definition>

element in the WSDL.

In WCF you control this targetnamespace using a namespace declaration on the service class (not the contract) with a ServiceBehavior.

[ServiceBehavior(Namespace="urn:yournamespace")]
public class YourService : IYourContract
{  }

Try to add this and then run the 'Add Webservice Reference' wizard again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文