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
- Set myHTTP = CreateObject("msxml2.xmlhttp")
- Set myDom = CreateObject("MSXML2.DOMDocument")
- myDom.async = False
- myDom.loadXML myxml
- myHTTP.Open "post", "<--website removed-->", False
- myHTTP.setRequestHeader "Content-Type:", "multipart/form-data; boundary=" & Boundary
- myHTTP.setRequestHeader "Content-Disposition:", "form-data; name=""xmlmsg"""
- myHTTP.send (myDom.Text)
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.