This is how I would go about it:
- Expose your Orchestration as a Web Service to take in your request message and return your result set.
- Create you inbound schema
- Probably just want to use the result from your SQL Query as the return
Use an Orchestration to query SQL using the SQL Adapter
- Accept an input message with your ID
- Map the input message to your SQL Send Message (Query)
- Get the results and return the message
You should be able to find some separate samples that accomplish all of this and you just have to put them all together. The SDK and online resources are good places to start.
Oh, I’d start with getting the SQL part to work first. It will auto generate schema for you.
I’d expect something like this to take someone new to BizTalk probably a week to complete and understand.
Hope this helps.