can't access web services with basic authentication - you don't have authorisation to view this page

gmrdf
Member Posts: 2
Hi
I'm having an issue with connecting to a nav service which is set up with NavUserPassword authentication. It's to be used from PHP / SOAP.
To test it, I'm opening a browser page to the service url and although it prompts for my username/password it then comes up with an error that i don't have authorisation to view this page.
If I enable soap on another nav service which is set up for windows authentication, I can access it and see the xml page correctly.
It just doesn't seem to work using basic authentication / username-password.
The user is set up in nav, and has a password set against them.
To test, if i load up the url, and enter a made-up username/password combination I get exactly the same response from the server, 'no authorisation'
It's a NAV 2015 install w/ sql server 2017 standard. nav was installed, and the database was backed up and restored from another working installation.
Any ideas what would be causing this ?
I'm having an issue with connecting to a nav service which is set up with NavUserPassword authentication. It's to be used from PHP / SOAP.
To test it, I'm opening a browser page to the service url and although it prompts for my username/password it then comes up with an error that i don't have authorisation to view this page.
If I enable soap on another nav service which is set up for windows authentication, I can access it and see the xml page correctly.
It just doesn't seem to work using basic authentication / username-password.
The user is set up in nav, and has a password set against them.
To test, if i load up the url, and enter a made-up username/password combination I get exactly the same response from the server, 'no authorisation'
It's a NAV 2015 install w/ sql server 2017 standard. nav was installed, and the database was backed up and restored from another working installation.
Any ideas what would be causing this ?
0
Answers
-
Did you use or generate the webservice acces key from the user card? This is not the same as the username/password combination.0
-
irasoelbaks wrote: »Did you use or generate the webservice acces key from the user card? This is not the same as the username/password combination.
No, I didn't gerate a webservice access key in the user card. I have now generated one, but I'm not sure if I require to apply this somewhere else other than the user card, or how to use it ?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