The header from the call to initiate the process needs to be used within the 
process, i.e. the auth header included in the call to start process X, say, 
should then be used in the process when it issues calls to other webservices.

-----Original Message-----
From: Matthieu Riou [mailto:[email protected]]
Sent: 27 February 2009 02:45
To: [email protected]
Subject: Re: Basic Auth

On Thu, Feb 26, 2009 at 12:04 AM, Martin Samm <[email protected]> wrote:

> Alexis,
>
> Ignore previous - got it for doc-literal.
>
> I guess it still leaves me with a problem. In the environment we have, the
> process is invoked with basic auth credentials already in the HTTP header -
> we need to pass those credentials through to the webservice calls within the
> process.
>
> I've had a quick look at SoapExternalService, AuthenticationHelper etc.
> What I need (I guess) is a way for the invocation of a webservice in the
> process to look at the auth headers from the process invocation.
>

I'm not sure I understand, are you saying you need the headers to be set
from within the process definition? If so you should be able to use header
assignment.

Thanks,
Matthieu


>
> If that [and I'm guessing it will) requires some new code (an extension)
> can you give some pointer how/if I can approach such a task.
>
> Many Thanks.
>
> Martin.
>
> -----Original Message-----
> From: Alexis Midon [mailto:[email protected]]
> Sent: 25 February 2009 19:43
> To: [email protected]
> Subject: Re: Basic Auth
>
> You could find examples of header manipulation in the bpel files under
> axis2-war/src/test/resources/**
> Look for instance into:
> TestHttpBindingExt_DELETE/http-binding-ext-DELETE.bpel   search for
> header="User-Agent"
> TestSoapHeader/HeaderTest.bpel
>
> For basic auth, there is a unit test:
> axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java
> [1]
>
> The bpel used is:
>
> axis2-war/src/test/resources/TestEndpointProperties/test-endpoint-properties.bpel
> [1]
>
>
> [1]
>
> http://jukka.zitting.name/git/?p=ode.git;a=blob;f=axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java;h=7cffdae5d523e50d82a39b61b591cc00d3ffff24;hb=refs/heads/APACHE_ODE_1.X
>
> [2]
>
> http://jukka.zitting.name/git/?p=ode.git;a=blob;f=axis2-war/src/test/resources/TestEndpointProperties/test-endpoint-properties.bpel;h=3b1bbfe4d5696c67cc1214af2e1d078af8eac6a1;hb=refs/heads/APACHE_ODE_1.X#l73
> Alexis
>
>
> On Wed, Feb 25, 2009 at 6:21 AM, Martin Samm <[email protected]>
> wrote:
>
> > I've seen this posting:
> >
> >
> >
> http://mail-archives.apache.org/mod_mbox/ode-user/200809.mbox/%[email protected]%3e
> >
> > But does anyone have any examples of using it?
> >
> > Thanks
> >
> > Martin Samm
> >
> > ________________________________
> > The information in this message is confidential and may be legally
> > privileged. It is intended solely for the addressee. Access to this
> message
> > by anyone else is unauthorised. If you are not the intended recipient,
> any
> > disclosure, copying, or distribution of the message, or any action or
> > omission taken by you in reliance on it, is prohibited and may be
> unlawful.
> > Please immediately contact the sender if you have received this message
> in
> > error.
> >
> > The views and opinions expressed in this email may not reflect the views
> > and opinions of any member of Lagan Technologies Limited, or any of its
> > subsidiaries.
> >
> > Lagan Technologies Limited is a company registered in Northern Ireland
> with
> > registration number NI 28773. The registered office of Lagan Technologies
> > Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
> >
> >
>
> The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this message
> by anyone else is unauthorised. If you are not the intended recipient, any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be unlawful.
> Please immediately contact the sender if you have received this message in
> error.
>
> The views and opinions expressed in this email may not reflect the views
> and opinions of any member of Lagan Technologies Limited, or any of its
> subsidiaries.
>
> Lagan Technologies Limited is a company registered in Northern Ireland with
> registration number NI 28773. The registered office of Lagan Technologies
> Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
>
>

The information in this message is confidential and may be legally privileged. 
It is intended solely for the addressee. Access to this message by anyone else 
is unauthorised. If you are not the intended recipient, any disclosure, 
copying, or distribution of the message, or any action or omission taken by you 
in reliance on it, is prohibited and may be unlawful. Please immediately 
contact the sender if you have received this message in error.

The views and opinions expressed in this email may not reflect the views and 
opinions of any member of Lagan Technologies Limited, or any of its 
subsidiaries.

Lagan Technologies Limited is a company registered in Northern Ireland with 
registration number NI 28773. The registered office of Lagan Technologies 
Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.

Reply via email to