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...
Unanswered

connection to bc using webservice

(0) ShareShare
ReportReport
Posted on by 25

Good morning,

I have a problem. I need to load a json in navision using http post request. But when I do it, it will give always error 400. I used postman and I put as function post, then the  IP, then in authentication I used NTLM auth with domain\username:password, in header content-type application/json and in the body the json. But it gives me always error 400. Could you help me, please? I don't know if I need to create environments or not

Best regards

I have the same question (0)
  • JAngle Profile Picture
    133 on at

    Try the authentication with a web service key instead. Set it up against the user record. Use the web service as the password with the user name you already have. On the http trigger set basic authentication.

  • sdfs Profile Picture
    25 on at

    Thank you for reply, but I have an help. I'm using Postman, but I have never used Navision. I understand that I need to use basic auth, username is given by Nav technician, password also. Headers contain "content-type"= "application/json" and body contains the created json I need to send. am I right?

  • sdfs Profile Picture
    25 on at

    Now what I receive is the following:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""">www.w3.org/.../strict.dtd">
    <HTML>

    <HEAD>
        <TITLE>Bad Request</TITLE>
        <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii">
    </HEAD>

    <BODY>
        <h2>Bad Request - Invalid Hostname</h2>
        <hr>
        <p>HTTP Error 400. The request hostname is invalid.</p>
    </BODY>

    </HTML>[quote user="sdfs"]

    Good morning,

    I have a problem. I need to load a json in navision using http post request. But when I do it, it will give always error 400. I used postman and I put as function post, then the  IP, then in authentication I used NTLM auth with domain\username:password, in header content-type application/json and in the body the json. But it gives me always error 400. Could you help me, please? I don't know if I need to create environments or not

    Best regards

    [/quote]
  • sdfs Profile Picture
    25 on at

    Thank you fpr your question. But I have some doubts on what you said. Can you be better clear? When I connected to SAP webservice, I had no issues

  • sdfs Profile Picture
    25 on at

    I set function to "POST", I set webservice url as given by dynamics technicians; then I enter headers and I set "Content-type=application/json", authentication set to NTLM (I used it to get data and it ran properly), in body tab I set the json I need to post. But error 400 is always sent

  • Community Member Profile Picture
    on at

    Choose the Lightbulb that opens the Tell Me feature icon, enter Users, choose the related link, and then open the user account that you want to edit.

    In the Web Service Access section, select the Web Service Access Key field.

    In the Set the Web Service Access Key window, if you do not want the key to expire, select the Key Never Expires check box. If you want the key to expire, set the Key Expiration Date field to the date.

    Choose the OK button.

    The access key is automatically generated and appears in the Web Service Access Key field.

    Hope it helps

  • sdfs Profile Picture
    25 on at

    What is LightBulb?

  • sdfs Profile Picture
    25 on at
    [quote user="sdfs"]

    Good morning,

    I have a problem. I need to load a json in navision using http post request. But when I do it, it will give always error 400. I used postman and I put as function post, then the  IP, then in authentication I used NTLM auth with domain\username:password, in header content-type application/json and in the body the json. But it gives me always error 400. Could you help me, please? I don't know if I need to create environments or not

    Best regards

    [/quote]

    I'm using Postman, because I need to connect to webservice from Filemaker using curl options.

  • sdfs Profile Picture
    25 on at

    Hi

    I don't understand what you said. Could you, please, help me better? I repeat I am using Postman to try to connect and I need to post a json

    Bye

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,143

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans