web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to avoid Redirect 302 in NAV Webservices?

(0) ShareShare
ReportReport
Posted on by 30

Hi friends.

We are trying to implement a NAV 2016 webservices through a public domain.

The problem we have is that when we try to access it, a redirect is created that we do not know how to remove or control.

We have tested the webservices locally within the NAV server and it works perfectly.

MyServerLocal-01:7047/.../SC_NAV_WebService

But trying to do it through a public domain like this:

MyServerLocal-01.MyDomain.com:7047/.../SC_NAV_WebService

We have noticed that the word "WebClient" is added after "/ Codeunit" and it would look like this:

MyServerLocal-01.MyDomain.com:7047/.../WebClient/SC_NAV_WebService

Finally we get this error:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

We have used the web www.redirect-checker.org/ and there we obtain that there is a 302 redirect.

Any tips or suggestions that we may be doing wrong?

Thank you very much.

Note: A Record A has been created for the domain.

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    That does look like a wrong configuration. As you know WebClient has no relation with SOAP. How does you PublicWebBaseUrl / PublicWebBaseSOAPUrl look like (customsettings.config).

    Thanks.

  • Suggested answer
    Ivan Labrador Profile Picture
    30 on at

    Hello, thank you very much for your time and response.

    Yes, we had configured the url of the form "http [s]: // [hostname]: [port] / [webserverinstance] / WebClient"

    The problem was solved by reconfiguring the firewall, somehow there was a conflict with the port and it generated that error.

    Best regards.

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Thank you for confirming the issue to be resolved plus final answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans