How to send a cookie
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to send a cookie
Hi guys,
I'm new to SOAP and I'm very new to SoapUI!!! From what little I have seen of it, you have done an amazing job with this product!
I'm trying to work with a certain SOAP API provider that requires establishing a connection to their server by sending a specific SOAP request. A Cookie is sent back and they require all subsequent access to pass this cookie along for verification.
How do I do that with SoapUI?
Best regards,
Arnor Baldvinsson - Icetips Alta LLC
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://stackoverflow.com/questions/28022721/sending-cookie-as-request-header-in-soap-ui-request-for-...
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rao,
Thanks for the reply and the link:) I'd actually seen that, but it's not helping, I'm afraid;)
I'm using the open source SoapUI and I cannot for the life of me find any of the stuff the article talks about. I found this page http://www.soapui.org/scripting---properties/scripting-and-the-script-library.html and from it, it sounds like the scripts/script editors are only features for SoapUI Pro, is that correct?
Best regards,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think as posted above sending the cookie as cleint header should work in this case. You need to know the exact key name to send the value with
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm sorry but I'm not getting this:( I have tried to add a http header to the request:
Header: Set-Cookie
Value: ASP.NET_SessionId=the_cookie_value_from_the_server
This does not work. The sites: http://stackoverflow.com/questions/28022721/sending-cookie-as-request-header-in-soap-ui-request-for-... and https://siking.wordpress.com/2013/07/25/soapui-cookie-management/ do not mention how to set this up except in code. Like I said before I'm not seeing any code options in SoapUI.
I've got this to work fine from my own code, but I cannot get this to work from SoapUI.
Best regards,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And in your raw request do you see that header/value pair being passed?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you are new to a tool, it helps if you read through the documentation first!
For any test that you need to pass the cookie around, go to the testcase options and turn on "maintain HTTP session". No, there is no global switch to turn this on, this is done on a case-by-case basis.
http://www.soapui.org/soapui-projects/form-based-authentication.html
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you! Got it working! Documentation can be daunting!
Best regards,
