Problem with Security 'UsernameToken' in XML
- Hello Group,
I am facing a problem, would be greatful if your experience
and knowledge can help me solve it. I have to query a server for
certain response by passing an XML file as request (the normal way
the Web Service works). But that server wants my xml to have
username, password(encrypted in base 64) and a nonce and created
But there is a problem. I need to pass this in the soap
envolup header as XML format and not in the header. (I tried passing
it in the header but the server didn't recognize it). I created it
and passed it as below:
but the server is not able to recognize this either. I think its not
as simple as i have guessed it. It is more complicated.
And where will I get the `nonce', right now I have hardcoded a nonce
in my program but do we have to take it from somewhere or we have to
create our own as I have done it?
It would be great helpful if u can reply at the earliest.
Thanking you immensely,