Invoking ESB Service From BPEL Fails With Error "exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException"-Metalink ID 427452.1

Friday, January 29, 2010

Symptoms
When attempting to invoke an ESB Service from BPEL. BPEL Process fails at the step of invoking ESB service.

exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException:
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed:
Connection refused: connect


Steps to reproduce
The issue can be reproduced at will with the following steps:
1. Go the URL: http://www.oracle.com/technology/products/integration/esb/index.html
2. Download ESB Example codes
3. Follow Lesson: BPEL ESB Loan Router
4. It works for SOA Basic install, but failed for advanced install

Cause
Virtualhost and port are not setup correctly for the ESB system where services are registered. This can be verified by examining the ESB service wsdl , as shown below

1. go to ESB Console -> Click ESB Service -> Definition
2. Open the Concrete WSDL URL, then verify the SOAP location and make sure it is valid.
3. If it is not setup correctly, you will get "HTTP transport error: javax.xml.soap.SOAPException"

Solution
Option I
1. Click the ESB system then configure Virtual host and Port number,
Set Virtual host to ESB Runtime Server's hostname
Set Port to ESB Runtime Server's http listening port
2. Apply the change

Option II
Use ESB bindings to invoke ESB services.
1. Login to ESB console, and click the Routing Service which BPEL is attempting to invoke.
2. Go to "Definition" tab, and uncheck "Can be invoked from an external service"
3. Click apply.
4. Go to BPEL Console and clear the WSDL Cache.
5. Restart SOA suite

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP