The session token is a bit of a special case. ODE supports the passing
of such tokens using Message exchange properties (see MessageExchange
interface). If you pass in a session identifier using these
properties, it will be associated with the partner link so all future
calls to the partner will have the session identifier. Now how the
session id gets in/out of your message is up to the integration layer.
So you could customize the axis2 integration for examle to look for
your session token in the header and drop it into the approperiate
message exchange property. This is already being done by the Axis
code, except the location of the token is likely not the same as where
you are expecting to find it. This approach has the benefit of not
requiring any changes to wsdl, and you won't need to be manually
copying session ids in the BPEL process.

-maciej


On 12/17/06, Jim Alateras <[EMAIL PROTECTED]> wrote:
Paul R Brown wrote:
>
>
> Hi, Jim --
>
>> Is there anyway to manipulate the SOAP header using the <copy>
>> construct in BPEL. The specific example is that I need to make a
>> request to a service to retrieve a 'session token' and in  subsequent
>> calls to the service I need to embed the 'session token'  into the
>> soap header.
>
>
> Inside of the BPEL world, there is no SOAP, only WSDL.  So, if that  bit
> of XML in the SOAP envelope is a WSDL part, you're in business.   If
> not, you're out of luck.
>
okay...so I guess all i need to do is define the binding section
(i.e. <soap:header>) appropriately and everything should just work.

cheers
</jima>

Reply via email to