Biztalk 2010 - Expose Schema as web service
In this article I will show how to expose schema as web service in BizTalk 2010 in a Step by Step manner. Before exposing schema as web service , one should know how to create a schema in Biztalk 2010 and to publish it as web service
Schema as Web Service
1. Create a Biztalk 2010 project in Visual Studio 2010
2. Right Click the project and click Add -> New Item
3. Create a new Schema from Schema file; this schema will be published as web service.
4. Create Schema elements
5. Create a new Orchestration which gets instantiated when the schema as web service gets invoked.
6. Create a one way receive and send port
7. Creating a mapping between the two schemas
8. Create strong name key file and deploy the project
1. Go to Tools -> Biztalk Web Service Publishing Wizard
2. Click 'Next' to create the web service
3. Select 'Publish schemas as web services'
4. By default it shows Request Response web method, delete this web method , if you don't need Request-Response web method
5. Add One-way web method by selecting Add Web method
6. Rename Web method as 'Add' .
Note: The web method name and the Receive Port operation name should be same, or else the message will NOT be picked up the orchestration.
7. Right click the request and select the schema type
8. Select the dll and chose the schema type which you want to expose as web service
9. Specify the target namespace
10. Specify the location and select the Biztalk application from the dropdown
11. The Schema is published as web service
12. Open IIS and select the application pool for the web service
13. You can browse the web service in browser
14. In Biztalk administrator console you can see the receive port
15. Create a Send port in Administrator console, of FILE type which stores the result when web service is invoked
16. Invoke the web service using SOAPUI
17. You can open the send port files and view the result