There is a Soap web service, in login method it returned ticket that i must get and save it in cookie.
I was call login method by below code:
var result = _Ws.Login("test" , "pass");
Now, How can i retrieve Headers value from output?
I tested login method by Postman, output was something like below:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<TicketHeader xmlns="http://sitename.com/WebService">
<Ticket>13526903-zase46-4213-ba29</Ticket>
</TicketHeader>
</soap:Header>
<soap:Body>
<LoginResponse xmlns="http://sitename.com/WebService">
<LoginResult>
<UserID>28</UserID>
<Name>FullName</Name>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>