Sunday, 10 August 2014

Send sessionId in header of soap request in JavaScript




<soap:Envelope xmlns:xsi="http://ift.tt/ra1lAU" xmlns:xsd="http://ift.tt/tphNwY" xmlns:soap="http://ift.tt/sVJIaE"> <soap:Header><JADESessionHeader xmlns="urn:xxx"> <sessionId>3ca9378ca47612fd</sessionId></JADESessionHeader></soap:Header><soap:Body><getFacilitiesForUser></getFacilitiesForUser></soap:Body></soap:Envelope>


I have saved the sessionId from the signIn request and now I want to send it with my next request to the SOAP web service. I just added it into the header manually like so. Does that not work? What happened was a new sessionId was created, so it said error you are not logged in.


No comments:

Post a Comment