473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

XML: POSTing Form-Data

I'm using Access 2003 and I need to send an xml file via POST.
I've got two others set up just the same, both work fine.
The problem is, this one tells me I need to send it as form-data with a name of 'xmlmsg'. I have no idea *how* to set that. Below is the code I'm trying, which removes both of those error messages and just throws <error>-3</error> at me. The people I'm trying to send it too are less than helpful. The one I spoke to doesn't know what it means.
The xml document is fine, it's just the sending it part I need help with.
Would someone please go over this and help me figure out where I've gone wrong?
The only changes between this and the working ones are the headers. The working two don't have/need any headers. So I'm pretty sure my problem lies there.

Expand|Select|Wrap|Line Numbers
  1.     Set myHTTP = CreateObject("msxml2.xmlhttp")
  2.     Set myDom = CreateObject("MSXML2.DOMDocument")
  3.     myDom.async = False
  4.     myDom.loadXML myxml
  5.  
  6. myHTTP.Open "post", "<--website removed-->", False
  7. myHTTP.setRequestHeader "Content-Type:", "multipart/form-data; boundary=" & Boundary
  8. myHTTP.setRequestHeader "Content-Disposition:", "form-data; name=""xmlmsg"""
  9. myHTTP.send (myDom.Text)
Thanks
Mandi

PS: 'Boundary' is a random line (------------46851 kinda thing) that is specified in the code, and myxml is the xml to send, also specified in the code.
Sep 16 '08 #1
1 2369
NeoPa
32,556 Expert Mod 16PB
Mandi, I'm afraid XML is outside of my experience (along with most HTML if truth be told), so I can do little to help except change your title to, hopefully, attract the attention of our more XML savvy experts.

Good luck & Welcome to Bytes!
Sep 16 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bryan Avery | last post by:
I am posting XML to a ASP web page, but it is not picking up the pure XML messages, why not? We have to use ENCTYPE="text/plain", otherwise the XML code is changed by Microsoft. Here is the...
3
by: Dirk Rudolf | last post by:
I like to announce you the product X2U, avaible under http://www.lumrix.net/x2. X2U is an acronym for "XML to user". Existing XML editors still ignore the fact that users don't want to read XML...
3
by: Leszek | last post by:
Hello, I have the following XML file: <events> <event name="event1"> <sessions> <session date="23 Feb 2004" time="10:00 - 15:00" location="Toronto" /> </sessions> </event>
2
by: John | last post by:
Hi, I need to store the size of my form in a config file. I was saving this in the registry, but I need it in a config file now. I came up with the following code. The part I'm not so sure...
2
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
4
by: Sasha | last post by:
Hi, I need to send xml file to an asp page.. I have no idea how to do it... I only know that I need to do HTTPRequest Post... Could someone help? Maybe there are some examples on the Web? ...
14
by: Evan Kontos | last post by:
I am trying to implement a Treeview w/an XML file and I even copied and pasted examples from MSDN but can't get them to work. Any suggestions welcome. XML File <TREENODES> <TREENODE...
5
by: Gardar | last post by:
I have a .net webservice, developed with c++ managed extensions. The websrvice returns an xml-document with a reference to a server side xml-stylesheet in the format <?xml-stylesheet href =...
18
by: Terry Holland | last post by:
I have an asp.net (1.1) application that connects to a SQL server 2000 db. I have a stored procedure in my db that out puts data in xml format. What I need to be able to do is display that xml...
4
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.