My requirement- have a single instance of CS, and multiple targets that correspond to the different environments of the native service. thus, each mediator WSDL must have a single port definition, with the same port name. the endpoints in these ports however, point to the different environments of the native service.
steps i am following-
-create a service and attach a WSDL to it,having a single port definition with the dev URL [eg. jboss dev] of the native service. at this stage the service is deployed to a single environment.
-virtualize the above service and deploy it to the dev-pep.
-after the service is tested in dev, it is deployed to the qa native environment [eg. jboss qa].
-in CS, i update the service WSDL, by adding a new port definition to the original WSDL. so effectively, my service WSDL now has two port definitions.save the service.
-navigate to the processing steps of the virtual service created earlier. change the endpoint [under straight through routing] to point to the new qa endpoint. i do this by using the ‘search for endpoint’ utility and not typing the new endpoint.
-deploy the virtual service to qa-pep.
-so basically, my dev-pep mediator wsdl should route all requests to the native dev environment and my qa-pep mediator wsdl should route them to the qa native environment.
the issue i am facing with the above steps is that when i deploy to the dev-pep, the port name in the mediator wsdl is picked up from the service wsdl itself. however, when i deploy it to the qa-pep, the mediator wsdl is having a port name that is generated by the mediator itself. what i need is to understand if this port name pattern can be configured somewhere, so that i can have the same pattern in all my mediators, effectively getting the same port names when deployed to any of them.
the WSDL snippet i have provided is the CS wsdl of the virtual service after deploying it to the qa-pep.
the objective of the above activity is to have a separate wsdl for each native environment having a single endpoint. only the wsdl i attach to the service in CS will have multiple port definitions. the virtual service will always be deployed after setting a single endpoint, hence each mediator wsdl will have a single port definition.