Page 1 of 1

Cookie Value in webservice job

Posted: Mon Aug 13, 2012 9:00 am
by srakshya
I have a datastage parallel job where I am using web service client and sequential file. I need to caputre the cookie value and pass it to my another job. My job ran fine. It is able to capture cookiename and other information from the xml soap content but not the cookie value as it is present in the HTTP Header. Is there a way in datastage to capture cookie value from the HTTP header.
I am using Microsoft Sharepoint WSDL.

Your help is appreciated!!!
Thank you

Posted: Mon Aug 13, 2012 1:29 pm
by eostic
I can't think of a way to do it using the WS Stage...it only delivers the SOAP envelope to you....if you need something outside of that, "perhaps" a pure java client can do it, using JavaPack......assuming that any old java class can easily do it. I'd start by researching how to capture cookies from a web service with Java, and then go from there.

Ernie

Posted: Tue Aug 14, 2012 6:26 am
by srakshya
Thank you Ernie!!!
Please give me some more information on this. I haven't use java client in datastage so far.

thanks

Posted: Tue Aug 14, 2012 12:50 pm
by eostic
As noted, research whether this can easily be done in a java class (call a web service, capture a cookie, etc.). If it can be done, then code it and test it stand alone so that you fully understand how the technology works in java...then, once you have such a technique working perfectly in java, learn how to integrate that java into DataStage. Lots and lots of threads here on doing that. Search thru the forum.

Ernie