Skip to main content

Notifications

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

  • sdfs Profile Picture
    25 on at
    RE: connection to bc using webservice

    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

  • sdfs Profile Picture
    25 on at
    RE: connection to bc using webservice
    [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
    RE: connection to bc using webservice

    What is LightBulb?

  • Community Member Profile Picture
    on at
    RE: connection to bc using webservice

    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
    RE: connection to bc using webservice

    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

  • sdfs Profile Picture
    25 on at
    RE: connection to bc using webservice

    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
    RE: connection to bc using webservice

    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
    RE: connection to bc using webservice

    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?

  • JAngle Profile Picture
    95 on at
    RE: connection to bc using webservice

    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.

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,234

#2
YUN ZHU Profile Picture

YUN ZHU 1,006 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 872

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans