Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to avoid Redirect 302 in NAV Webservices?

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
    Marco Mels 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
    Ivan Labrador 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
    Marco Mels 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans