Hey guys
I have an issue with calling a webserivce within NAV from another webservice.
The setup is like this:
There is a Webshop that users can login to. Users can be either Danish, German, Swedish or others.
There is a dataport set up to access the main company thorough a webservice (codeunit - Function "Process").
This codeunit checks which county the users is from and then calls a webservice (same codeunit - Function "Process2") to the correct company.
The issue is when calling this second webservice I get an 401 error:
Answers
Your WebService-request must be authorised with Username and Password.
Tried to set default user when calling the next webservice and tried without setting any user (thinking that it will use the user already log in).
But now I'm setting the user credentials for the user to the webservice and then I get this error instead:
Everything seems to work fine by now.