Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2003, 11:37 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Single HTTP POST - Multiple XML docs

I'm currently using "Msxml2.ServerXMLHTTP" to send() my xmlDoc.

How do I send multiple (separate) XML request docs using a SINGLE HTTP POST command?

sample code:
set xmlServerHttp = server.CreateObject("Msxml2.ServerXMLHTTP")
xmlServerHttp.open "POST", sURL, False
xmlServerHttp.setRequestHeader "CONTENT_TYPE", "application/x-www-form-urlencoded"
xmlServerHttp.send objXML & objXML2

I get the following error:
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method

Please help.

thanks,
dennis


 
Old August 26th, 2003, 05:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

As far as I know you can't do that directly. One solution would be create an Xml wrapper around all the documents:
Code:
<documents>
  <documentOne></documentOne>
  <documentTwo></documentTwo>
</documents>
You could create a wrapper document by simply loading the string "<documents/>" into a fresh DomDocument. Then append the document elements of the DomDocuments you wish to send to the document element of the wrapper.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP post silver_scar C# 2005 0 July 31st, 2006 09:52 AM
HTTP POST/GET d_alchemist JSP Basics 1 April 24th, 2006 09:18 AM
Sending XML via http post, using servlet kermitus Servlets 1 March 14th, 2006 07:03 PM
Multiple XML Docs/One XSLT Stylesheet kwilliams XSLT 5 August 4th, 2005 11:54 AM
XML HTTP Post acdsky Servlets 2 June 2nd, 2005 10:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.