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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Send XML data using HTTP POST in NAV 2016

(0) ShareShare
ReportReport
Posted on by 35

I do not have much knowledge on using HTTP. I haveve created an XMLPort and I want to send the exported data of this XMLPort to the URL. The code that I've written to test the URL is:

HTTPWebRequest := HTTPWebRequest.Create('service.ariba.com/.../cxml.asp');
HTTPWebRequest.Method := FORMAT('POST');
HTTPWebResponse := HTTPWebRequest.GetResponse;

var

HTTPWebRequest    DotNet    System.Net.HttpWebRequest.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
HTTPWebResponse    DotNet    System.Net.HttpWebResponse.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Need help with the remaining code which sends XML as a stream in this POST request.

TIA.

  • Verified answer
    ishwarsharma016 Profile Picture
    35 on at

    Got needed guidance from forum.mibuso.com/.../xml-api-integration

  • Andy Sather Profile Picture
    Microsoft Employee on at

    Thank you for replying back with the answer to this.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans