CentraSite Documentation : Runtime Governance with CentraSite : Important Considerations when Configuring SOAP-based Virtual Services : Handling Services with Multiple Ports and Bindings : Workaround Option 1
Workaround Option 1
You can create two different virtual services. That is, you can expose this native service as two virtual services -- one for each operation that needs to be invoked:
*A service for the getXXX operations (for example, a service called VS_Customer).
*A service for the ping operation (for example, a service called VS_ping).
To create a different virtual service for each operation
1. Create a virtual service for the native service CustomerRefService and name it VS_Customer, for example.
2. Configure VS_Customer and configure its routing protocol as "Straight Through".
3. Specify the routing address as http://... /v4/CustomerRefPort (for CustomerBinding, where all the getXXX operations are supported).
4. On the virtual service's Summary profile, click on the URL for the WSDL (this a copy of the virtual service template WSDL, very similar to the original native service WSDL) and download/save it to your local file system.
(Make an additional copy of this downloaded WSDL in case you make a mistake in your editing.)
5. Remove the following elements from the WSDL and then save it:
*SystemPortType
*SystemBinding
*SystemPort
Note:  
Make sure your browser or XML tool can read this modified WSDL without any syntax error.
6. Attach the modified WSDL file to the virtual service by selecting the Attach WSDL command in the virtual service's Actions menu.
7. Create another virtual service for the native service CustomerRefService and name it VS_ping, for example. Repeat the above steps but with the following differences:
*Specify the routing address as http://... /v4/SystemPort.
*Remove the following elements from the WSDL:
*CustomerPortType
*CustomerBinding
*CustomerPort
8. Deploy both virtual services to Mediator.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback