I have created an Orchestration that has declared a web service for Managing Sales Orders. This works fine, However I want to move the Web service out and into it's own orchestration and be able to call the orchestration when needed by other orchestrations. Each web method has a multi-part message assigned.
Expectation is that I will have to re-use all the Web Service methods in other Orchestrations and any future needs.
- How do I go about setting up the ports correctly?
- What is the correct method and guidelines I should use when creating a special Orchestration or Application for this purpose?
- What would the Orchestration look like?
- Do I set up the Ports in the Orchestration by 'specify now'
The Web Methods for the Web Service in question has
- getCustomerItemPrice (request/response)
- getitemListPrice (request/response)
- getItemPriceAndAvalability (request/response)
- getSalesOrder (request/response)
- getSalesOrderHistory (request/response)
- processSalesOrder (request/response)
- processSalesPriceAdjustment (request/response)
Tip 'Hold the shift key down while clicking on the hyperlink to view the current setup of my Orchestration & Web Service.
The problem you have is that your web service port is tightly coupled to your existing orchestration because different operations on the port are called at different steps during the orchestration execution. So it may not be possible to move the entire web service port out of this orchestration and into a single other orchestration.
If you really want to abstract this web service call out of this orchestration then you are faced with a large refactoring exercise. You will probably need to perform at least some of the following steps:
To be honest I am not sure I can see huge value in doing this unless you are expecting a lot of re-use of these components.