Sending HTTP POST via NAV
wwestendorp
Member Posts: 178
I want to send an XML File from Navision with HTTP POST.
Now I know that I should encode the username:Pasword But I have No Idea how to send the XML File?
What kind of Automation or OCX or... should I use?
Are there examples?
Thanks for your Imput!
Now I know that I should encode the username:Pasword But I have No Idea how to send the XML File?
What kind of Automation or OCX or... should I use?
Are there examples?
Thanks for your Imput!
0
Comments
-
0
-
This is an easy example of posting
CREATE(XMLHTTP); XMLHTTP.open('POST', 'http://whatever', FALSE); XMLHTTP.setRequestHeader('Content-Type: ', 'application/x-www-form-urlencoded'); XMLHTTP.send(XMLString); response := XMLHTTP.responseText;
XMLHTTP is an automation, 'Microsoft XML, v3.0'.XMLHTTPNavision developer0 -
lzr wrote:This is an easy example of posting
CREATE(XMLHTTP); XMLHTTP.open('POST', 'http://whatever', FALSE); XMLHTTP.setRequestHeader('Content-Type: ', 'application/x-www-form-urlencoded'); XMLHTTP.send(XMLString); response := XMLHTTP.responseText;
XMLHTTP is an automation, 'Microsoft XML, v3.0'.XMLHTTP
Thanks!
Should I use an XMLString or could I send the XML File instead?0 -
lzr wrote:This is an easy example of posting
CREATE(XMLHTTP); XMLHTTP.open('POST', 'http://whatever', FALSE); XMLHTTP.setRequestHeader('Content-Type: ', 'application/x-www-form-urlencoded'); XMLHTTP.send(XMLString); response := XMLHTTP.responseText;
XMLHTTP is an automation, 'Microsoft XML, v3.0'.XMLHTTP
How can I send following lines (also as HTTPO Header or Body ?
POST /invoke/ActDelivery_HTTP.Inbound/receiveXMLsynch HTTP/1.1
Content-Type: text/xml; charset="UTF-8"
Authorization: Basic EncryptedID...individualBase64encodedCredentials==
User-Agent: SCHttpPostData/1.1
Host: WEBPRG.com
Content-Length: 547
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ssnid=0 -
ara3n wrote:
Thanks
I receive a error message:
The Call to member respondsetext failed.
msxml3.dee returned following message: The data nessecary to complete the operation is not yet avvailable.
What does this mean? Is the DLL corrupt or ??0 -
Hi,
this could mean that you asynchronous call, and you try to do something without having the response data.
Could you paste the lines that give this error?0 -
wwestendorp wrote:How can I send following lines (also as HTTPO Header or Body ?
POST /invoke/ActDelivery_HTTP.Inbound/receiveXMLsynch HTTP/1.1
Content-Type: text/xml; charset="UTF-8"
Authorization: Basic EncryptedID...individualBase64encodedCredentials==
User-Agent: SCHttpPostData/1.1
Host: WEBPRG.com
Content-Length: 547
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ssnid=
I am no expert in this, the example was all I needed to get it to work. There should be some documentation around xmlhttpNavision developer0 -
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
