XML HTTP POST Data Send Issue

Xypher
Member Posts: 297
So here's my issue,
I am wanting to place 1024+ data into an automation acting as a variable, much like XMLDom.load(blahStream); XMLHTTP.Send(XMLDom). But the XML data I want to send has multiple Root nodes.
So my question is, "How might I go about placing two XML documents in a single 'packet' so I can use XMLHTTP/WinHTTP(whatever).Send(My 1024+ Multi-XML Data); ?"
[Oh and connecting HTTPS is a requirement, so I would like to not stray far from XMLHttp or WinHTTP Automations.]
I am wanting to place 1024+ data into an automation acting as a variable, much like XMLDom.load(blahStream); XMLHTTP.Send(XMLDom). But the XML data I want to send has multiple Root nodes.
So my question is, "How might I go about placing two XML documents in a single 'packet' so I can use XMLHTTP/WinHTTP(whatever).Send(My 1024+ Multi-XML Data); ?"
[Oh and connecting HTTPS is a requirement, so I would like to not stray far from XMLHttp or WinHTTP Automations.]
0
Answers
-
XML by definition cannot have multiple roots. I suggest to create a valid XML file.
Plus xmldom.load won't load an xml file with multiple roots.0 -
Yes I absolutely understand this.
The issue I am experiencing is loading data from two sources, whether it is XML or not, and sending it as one.
The webservice that I am posting to requires 2 XML documents in a single packet. So I need to find a way to transfer data from two files, load it into some kind of external variable, due to the 1024 communication buffer, and send it.
In other words, I would like to send fragments (of 1024 bytes) of data to an external variable to be used as a whole in sending to an automation.0 -
For me it seems like you need to open "Stream" and write the two files into this one stream... But this is just the "logic", how to do it in your specific case I do not know...0
-
Is this for UPS?
UPS requires a XML file with 2 root's.
We have solved it but sell it as a commercial product. Please contact me for more information.0 -
Mark Brummel wrote:Is this for UPS?
UPS requires a XML file with 2 root's.
We have solved it but sell it as a commercial product. Please contact me for more information.
Yes it is for UPS. As far as I can tell the company I work for wouldn't want to spend any money on something like this.0 -
That is to bad because the time you spend is money too.0
-
Mark Brummel wrote:That is to bad because the time you spend is money too.
This is true, but we're not in a huge huge rush. We are still using UPS Worldship and would "like" to convert to something that works more for us.
So I'm just gonna write up some easy VB6 dll that will act as a middle man.0 -
Xypher, did you ever solve this? I am countering the EXACT same issue.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions