Navision consumption of Navision Webservice

prototyper
Member Posts: 70
While there seems to be an awful lot of documentation on the setting up NAV 3-tier I still cannot get my Navision to consume a Navision webservice. The resulting failure is "The user ID and password are invalid. Try again".
This is on a 3-tier and I can see via the event logs that the 2nd tier (WS) is connecting the the 3rd tier (SQL) using the correct credentiials.
There seems to be a lot of varying documentation on the syntax of SPN. I have added some but I am not sure if they have been added correctly - or infact if this is even my problem.
If my SLQ Server is SQLSERVER, my SQL Instance is SQLInstance, my database is SQLDB my credentials are DOMAIN/USER and my webservice is set to use port 7048, What SPN(s) should I be adding.
When adding delegation do I add this to the 2nd tier computer or the 3rd tier? And do I add the user/Computer of the DOMAIN/USER or of the SQLServer?
Any other suggestions or thought would also be appreciated. ](*,)
This is on a 3-tier and I can see via the event logs that the 2nd tier (WS) is connecting the the 3rd tier (SQL) using the correct credentiials.
There seems to be a lot of varying documentation on the syntax of SPN. I have added some but I am not sure if they have been added correctly - or infact if this is even my problem.
If my SLQ Server is SQLSERVER, my SQL Instance is SQLInstance, my database is SQLDB my credentials are DOMAIN/USER and my webservice is set to use port 7048, What SPN(s) should I be adding.
When adding delegation do I add this to the 2nd tier computer or the 3rd tier? And do I add the user/Computer of the DOMAIN/USER or of the SQLServer?
Any other suggestions or thought would also be appreciated. ](*,)
Sleep on it... The best solutions come at 2am
0
Comments
-
you will have to provide credentials to your service object to consume it.
eg:
ICredentials credentials = new NetworkCredential("user", "password", "domain");
EECustomerService eeCustomerService = new EECustomerService();
eeCustomerService.UseDefaultCredentials = false;
eeCustomerService.Credentials = credentials;
eeCustomerService.Url = Url;
CustomerService = eeCustomerService;
hope this works.
regardsKS0 -
Thanks.
I am trying to consume a Navision webservice from within Navision, without .net code.
I am having this issue even though I am setting the credentials using the following codeSoapHttpConnector.Property('AuthUser', 'domain\user'); SoapHttpConnector.Property('AuthPassword', 'password');
Any other thoughts or suggestions? ](*,)Sleep on it... The best solutions come at 2am0 -
Hi
check whether that database is having windows authentication or not with which ID you are trying to open the RTC.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions