English 中文(简体)
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.

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.

问题回答

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

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.





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签