Hi,
I have exposed a codeunit and calling it from Visual Studio. While debugging i found following error/exception when the webservice is called.
Error
[System.Web.Services.Protocols.SoapException] = {"System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again.\n at System.Web.Services.Protocols.
The username is already a member of the A/D and has Super rights in navision.
Does anyone has any clue regarding the same.
0
Comments
How do you give it a username? I also did this kind of work but without giving it a username. It uses the credentials of the current user (which you can change by using the "runas-command").
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
@Kriki: I dont specify username anywhere. I run it with my userid and it has SUPER rights in Navision.
However I have specified UseDefaultCredentials = True before calling the webservice.
@Kine: Can you please elaborate it as to what exactly do you mean delegation. The Nav server and nav webservice are running with my account and my account has administrator rights in my system.
To be more specific, the scenario is as below
1. I have an application say MyApplication.
2. My application calls a webservice say ParentWS that is a part of IIS web application. (Developed in VB)
3. ParentWS calls my webservice say NavisionWS (NavisionWS is a codeunit published as webservice)
4. At this point i get the error [System.Web.Services.Protocols.SoapException] = {"System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again.\n at System.Web.Services.Protocols
5. However if i call NavisionWS webservice directly from MyApplication no error comes and the codeunit runs perfectly.
Please help as this stuff is really freaking me out.
http://msdn.microsoft.com/en-us/library/dd301254.aspx
http://blogs.msdn.com/nav/archive/2009/07/01/spn-name-changes.aspx
http://msdn.microsoft.com/en-us/library/ee414212.aspx
http://blogs.msdn.com/nav/archive/2009/11/05/duplicate-spns-in-a-3-tier-setup-and-how-to-locate-them.aspx
http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd
http://msmvps.com/blogs/kine/archive/2011/05/29/dynamics-nav-2009-and-spns.aspx
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The user under which ParentWS is running cannot connect. The links should help you.
Is there any way to find out what credentials the webservices use in C#. Alteast that would help me to know where to change the credentials b4 running the webservice.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.