N
nsyforce
I am writing a web service that is taking advantage of WSE. I'm
starting out by just sending a userNameToken with a plain text
password. The class I'm using to implement the userNameTokenManager
works as expected with the authenticateToken method. I've debugged it
and can see where the userNameToken is being obtained. The webservice I
have has a 'helloWorld' function. When that function runs, I can't get
a hold of the userNameToken. It's as if the Ws Security header has
been removed. I've Googled, and did find where someone made the
comment that after the authentication takes place through the
userNameTokenManager, that WSE deletes the header as a security
measure.
Although I saw that mentioned, I'm not believing it. In the
userNameToken example that comes with WSE, I don't have this problem.
The service code can obtain the userNameToken. There are many samples
from Microsoft where they do this. The code in my 'helloWorld'
function is the exact same code used in these examples to get the
userNameToken.
So my question is, why would I not be able to get the userNameToken in
a helloWorld function after the authenticateToken function ran, and it
could get it? Could there be some sort of configuration issue?
One last thing to mention. My client is a windows form.
Thanks in advance
starting out by just sending a userNameToken with a plain text
password. The class I'm using to implement the userNameTokenManager
works as expected with the authenticateToken method. I've debugged it
and can see where the userNameToken is being obtained. The webservice I
have has a 'helloWorld' function. When that function runs, I can't get
a hold of the userNameToken. It's as if the Ws Security header has
been removed. I've Googled, and did find where someone made the
comment that after the authentication takes place through the
userNameTokenManager, that WSE deletes the header as a security
measure.
Although I saw that mentioned, I'm not believing it. In the
userNameToken example that comes with WSE, I don't have this problem.
The service code can obtain the userNameToken. There are many samples
from Microsoft where they do this. The code in my 'helloWorld'
function is the exact same code used in these examples to get the
userNameToken.
So my question is, why would I not be able to get the userNameToken in
a helloWorld function after the authenticateToken function ran, and it
could get it? Could there be some sort of configuration issue?
One last thing to mention. My client is a windows form.
Thanks in advance