使用作为 Web 服务公开的 Biztalk 2006 R2 Orchestration

发布于 2024-08-11 09:41:34 字数 375 浏览 3 评论 0原文

我创建了一个作为 Web 服务公开的 Orchestration,该 Orchestration 基本上接收员工的消息类型,其中将 Employee_Name 提升为可区分字段,我将如下值分配给消息分配形状中的 ModifiedEmployeeMsg 并发送ModifiedEmployeeMsg 到 Soap Adapter 的响应部分。

修改后的EmployeeMsg = 员工消息;修改的EmployeeMsg.EmployeeName = "Sam";

现在,我想从 Windows 应用程序使用这个公开的 Web 服务,您能告诉我如何调用这个 Web 服务以及如何将 XML 消息作为参数传递给 Web 服务,基本上它是一个同步调用到 Web 服务,我将员工消息和员工消息的修改版本传回。谢谢。

I have created an Orchestration which is exposed as a web service, the Orchestration basically receives an message type of employee, which has the Employee_Name promoted as a distinguised field to which I assign the value as below to the ModifiedEmployeeMsg in a Message assignment shape and send the ModifiedEmployeeMsg to the response part of the Soap Adapter.

modifiedEmployeeMsg = employeeMsg; modifiedEmployeeMsg.EmployeeName = "Sam";

Now, I want to consume this exposed web service from a Windows application, can you tell me the process how can I call this web service and how I need to pass the XML message as a parameter to the web service, basically its a synchronous call to the web service where I pass the employee msg and the modified version of the employee message back. Thanks.

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

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

发布评论

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

评论(2

晚雾 2024-08-18 09:41:34

首先,您需要使用 BizTalk Web 服务发布向导将业务流程发布为 Web 服务。之后,使用 Web 服务就像使用任何其他典型的 Web 服务一样。有关更多详细信息,您可能需要访问此链接。

http://msdn.microsoft.com/en-us /library/aa561809(BTS.10).aspx

First, You need to publish the orchestration as a web service using the BizTalk Web Services Publishing Wizard. After that consuming the web service is like consuming any other typical web service. For more details you might want to visit this link.

http://msdn.microsoft.com/en-us/library/aa561809(BTS.10).aspx

拍不死你 2024-08-18 09:41:34

您可以像调用任何 Web 服务一样调用该 Web 服务。

这将涉及向您的 Windows 应用程序添加 Web 引用。这将在您的 Windows 应用程序中生成代理对象(例如 EmployeeMsg),使您无需构造任何 XML 即可调用服务。 .NET 将为您管理所有 XML。

MSDN 上的这篇文章通过 Microsoft .NET Compact Framework 使用 Web 服务,有一个例子。只需忽略 Compact Framework 介绍即可——文章的其余部分仍然适用。

You can call the web service as you would any web service.

This would involve adding a web reference to your Windows application. This will generate proxy objects in your Windows application (e.g. EmployeeMsg) that allow you to invoke the service without constructing any XML. .NET will manage all of the XML for you.

This article on MSDN, Consuming Web Services with the Microsoft .NET Compact Framework, has an example. Just ignore the Compact Framework intro -- the rest of article still applies.

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