简体   繁体   English

消费作为Web服务公开的Biztalk 2006 R2 Orchestration

[英]Consuming Biztalk 2006 R2 Orchestration exposed as a web service

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. 我创建了一个作为Web服务公开的Orchestration,该Orchestration基本接收一种雇员的消息类型,该雇员具有提升为可区分字段的Employee_Name,我以消息分配形状将以下值分配给ModifiedEmployeeMsg并发送将ModifiedEmployeeMsg发送到Soap Adapter的响应部分。

modifiedEmployeeMsg = employeeMsg; ModifyedEmployeeMsg = employeeMsg; modifiedEmployeeMsg.EmployeeName = "Sam"; 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. 现在,我想从Windows应用程序中使用此公开的Web服务,您能告诉我该过程如何调用该Web服务以及如何将XML消息作为参数传递给Web服务,基本上是一个同步调用。到Web服务,我将员工信息和修改后的版本的员工消息传递回去。 Thanks. 谢谢。

You can call the web service as you would any web service. 您可以像调用任何Web服务一样调用Web服务。

This would involve adding a web reference to your Windows application. 这将涉及向您的Windows应用程序添加Web参考。 This will generate proxy objects in your Windows application (eg EmployeeMsg) that allow you to invoke the service without constructing any XML. 这将在Windows应用程序(例如EmployeeMsg)中生成代理对象,使您无需构造任何XML即可调用服务。 .NET will manage all of the XML for you. .NET将为您管理所有XML。

This article on MSDN, Consuming Web Services with the Microsoft .NET Compact Framework , has an example. MSDN上的这篇文章, 使用Microsoft .NET Compact Framework消耗Web服务 ,提供了一个示例。 Just ignore the Compact Framework intro -- the rest of article still applies. 只需忽略Compact Framework简介-其余文章仍然适用。

First, You need to publish the orchestration as a web service using the BizTalk Web Services Publishing Wizard. 首先,您需要使用BizTalk Web服务发布向导将业务流程作为Web服务发布。 After that consuming the web service is like consuming any other typical web service. 之后,使用Web服务就像使用其他任何典型的Web服务一样。 For more details you might want to visit this link. 有关更多详细信息,您可能需要访问此链接。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM