In the future, I recommend that you use the word "WSE" in your subject lines, so that people are aware you are using WSE. There are fewer and fewer people all the time who can answer questions on this obsolete technology, and they are more likely to see
your question if you indicate that it is a WSE question.
The error comes from the server.
It is probably not configured to use WSE.
If you use VS 2005 you can enable it by right clicking the web site, choosing the WSE3 options, and checking the two checkboxes.
After this you would need to configure the server with a matching policy.
Additional errors may appear in the event log.
I would suggest you will setup the WSE 3.0 username sample before building it from scratch.
Have you done any configurations on your service side so it will expect to get user/pass?
If not then go over WSE3 tutorials.
If you have installed the WSE3 add in to VS 2005 then you can right click projects in VS choose the pop up option WSE3 settings and tehm you have a screen with two checkboxes to enable WSE3 for the project.
In the same manner you have configured your client policy file you need to supply one for the service as well.
You should look in the WSE3 sample applications to see a live example.
i am also facing the same SOAP header Security was not understood when i am accessing my webservice hosted on a server, but i am able to access in my local machine .
suresh_g_v20...
Contributor
3566 Points
824 Posts
SOAP header Security was not understood.
Apr 13, 2009 09:26 AM|LINK
I am using WSE 3.0 to build the WebServcie,
I am calling the web service using a proxy where i am setting UserNameToken as followsUsernameToken
token = null;token = new UsernameToken("username", "password", PasswordOption.SendNone);serviceProxy.SetClientCredential(token);serviceProxy.SetPolicy("usernameTokenSecurity");But i am getting the following error when trying to call the webservice
System.Web.Services.Protocols.SoapHeaderException: SOAP header Security was not understood.
Can anybody tell me where i am going wrong?
Thanks
Suresh Kumar Goudampally
johnwsaunder...
Star
11262 Points
1981 Posts
Re: SOAP header Security was not understood.
Apr 13, 2009 12:22 PM|LINK
In the future, I recommend that you use the word "WSE" in your subject lines, so that people are aware you are using WSE. There are fewer and fewer people all the time who can answer questions on this obsolete technology, and they are more likely to see your question if you indicate that it is a WSE question.
yaronn01
Contributor
2754 Points
414 Posts
Re: SOAP header Security was not understood.
Apr 13, 2009 01:05 PM|LINK
It is probably not configured to use WSE.
If you use VS 2005 you can enable it by right clicking the web site, choosing the WSE3 options, and checking the two checkboxes.
After this you would need to configure the server with a matching policy.
Additional errors may appear in the event log.
I would suggest you will setup the WSE 3.0 username sample before building it from scratch.
Web Services Performance, Interoperability And Testing Blog
suresh_g_v20...
Contributor
3566 Points
824 Posts
Re: SOAP header Security was not understood.
Apr 13, 2009 01:18 PM|LINK
Hi ,
What are the two checkboxes?
And what is that Matching Policy?
Can you be little eloborate?
Thanks
Suresh Kumar Goudampally
yaronn01
Contributor
2754 Points
414 Posts
Re: SOAP header Security was not understood.
Apr 13, 2009 10:24 PM|LINK
If not then go over WSE3 tutorials.
If you have installed the WSE3 add in to VS 2005 then you can right click projects in VS choose the pop up option WSE3 settings and tehm you have a screen with two checkboxes to enable WSE3 for the project.
In the same manner you have configured your client policy file you need to supply one for the service as well.
You should look in the WSE3 sample applications to see a live example.
Web Services Performance, Interoperability And Testing Blog
sreevadlamud...
Member
2 Points
1 Post
Re: SOAP header Security was not understood.
Dec 13, 2012 07:03 PM|LINK
i am also facing the same SOAP header Security was not understood when i am accessing my webservice hosted on a server, but i am able to access in my local machine .
can anybody help me out?