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.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: How to avoid Redirect 302 in NAV Webservices?

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

  • Suggested answer
    Ivan Labrador Profile Picture
    30 on at
    RE: How to avoid Redirect 302 in NAV Webservices?

    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
    RE: How to avoid Redirect 302 in NAV Webservices?

    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.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans