Hi,

if you can alter the wsdl of the invoked service, you can have a look at the
HTTP Authentication section in the user guide [1].
if you can't, have a look at the section right above: "Endpoint
Configuration". And define the Authorization header for your service. Beware
that you need to encode your credentials:

Basically, in a file named
processes/${your_process_bundle}/${whatever_name}.endpoint (mind the
extension) write something like:

alias.my_ns=http://your.service.namespace.com
my_ns.processServicesPTService.ode.http.default-headers.Authorization=Basic
QWxhZGRpbj==

You don't have to restart the server. After ~30 seconds, changes should be
applied.

Alexis

[1] http://ode.apache.org/user-guide.html
[2] http://ode.apache.org/user-guide.html#UserGuide-EndpointConfiguration

On Wed, Dec 3, 2008 at 6:46 AM, Nabatian, Rouzbeh <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> i have configured my Tomcat with HTTP basic autentification,
> my BPEL process trys to invoke a webservice defined like this:
>
>
> -  <wsdl:service name="processServicesPTService">
> -     <wsdl:port binding="tns:processServicesPTSoap11"
> name="processServicesPTSoap11">
>          <soap:address
> location=http://admin:[EMAIL PROTECTED]:8080/myApp/webservices/processService
> s <http://admin:[EMAIL PROTECTED]:8080/myApp/webservices/processServices>  />
>
>  </wsdl:port>
> </wsdl:service>
>
> but it dosent seem to work.
> i know it is not the best way to use basic autentification to webservice
> call but
> can you please walk me through this Problem?
>
> thanks
>
>
>
>

Reply via email to