invoke web service with authentication headers in ode bpel

282 views Asked by At

I'm using eclipse bpel designer and trying to invoke a external service which requires authentication headers to be passed.

Here is what I have done
1. Created a headers.endpoint file with the following content

*alias.sample_ns="http://sample.com"  
sample_ns.serviceName.portName.ode.http.default-headers.username=system
sample_ns.serviceName.portName.ode.http.default-headers.password=admin*
  1. Placed it in ..\webapps\ode\WEB-INF\processes\$process folder

When I invoke the service I'm getting the following error
"Error sending message (mex={PartnerRoleMex#hqejbhcnphrckf492s9n9b [PID {http://createReservation}CreateReservation-1541] calling [email protected](...) Status ASYNC}): Transport error: 401 Error: Unautho".

I think I need to add header information when invoking the service in BPEL process as well. But couldn't find the way to do it. How can it be done, if this is actually what I'm missing? Or is there something else to be done?

Thanks in advance

1

There are 1 answers

7
Sathwik On