Thursday, June 14, 2012

Multiple WSDL files with same target namespace


Multiple WSDL files with same target namespace In BPEL Process


It's a very rare situation where BPEL need to call multiple webservices with same namespace. In this scenario JVM compiler will throw compilation error and will not allow you to deploy the BPEL Project.  Here I have a solution for this kind of situation - 

1. Download all the WSDL in to your project location.

2. Edit the each WSDL by adding the <wsdl:part>  in both wsdl files. i.e. both WSDL files should have the same duplicated part elements.

3. Now edit your parnerlink configuration in you bple.xml to these modified WSDL's.

4. With this we can compile & deploy this project now without any issue.

Note - Editing WSDL files is not a good practice and try to apply this technique only if it's required. 


No comments:

Post a Comment