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

pic1

2. Right Click the project and click Add -> New Item

pic2


3. Create a new Schema from Schema file; this schema will be published as web service.

pic3


4. Create Schema elements


pic4


pic5



5. Create a new Orchestration which gets instantiated when the schema as web service gets invoked.

pic6

pic7


6. Create a one way receive and send port


pic8


7. Creating a mapping between the two schemas

pic9


8. Create strong name key file and deploy the project


pic10



1. Go to Tools -> Biztalk Web Service Publishing Wizard


pic11



2. Click 'Next' to create the web service



pic12



3. Select 'Publish schemas as web services'



pic13


4. By default it shows Request Response web method, delete this web method , if you don't need Request-Response web method



pic14



5. Add One-way web method by selecting Add Web method


pic15




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.



pic16




7. Right click the request and select the schema type


pic17


pic18



8. Select the dll and chose the schema type which you want to expose as web service



pic19


pic20


9. Specify the target namespace


pic21

pic22


10. Specify the location and select the Biztalk application from the dropdown


pic23


11. The Schema is published as web service


pic24


pic25


12. Open IIS and select the application pool for the web service


pic26


pic27


13. You can browse the web service in browser


pic28

14. In Biztalk administrator console you can see the receive port


pic29


15. Create a Send port in Administrator console, of FILE type which stores the result when web service is invoked


pic30


16. Invoke the web service using SOAPUI


pic31

17. You can open the send port files and view the result


pic32

pic33


Comments



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: