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 April 5th, 2004, 03:06 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Post using microsoft.XMLHTTP

I am trying to send some XML data over to a server for online checking verification. I am using the xmlHTTP component to send this data. For some reason the response I also get is empty, below is the code I am sending.

Set anXMLhttpObject = Server.CreateObject("Microsoft.XMLHTTP")
TransactionURL = "https://secure.itinternet.net/ism/"
anXMLhttpObject.open "POST",TransactionURL,false
anXMLhttpObject.setRequestHeader "Content-type", "text/xml"

anXMLhttpObject.send "xmldoc=<?xml version=""1.0"" encoding=""ISO-8859-1"" ?><!DOCTYPE Query SYSTEM ""ism.dtd""><Query><Version>ISM XML 1.0</Version><Service>TEST</Service><Processor><ProcessorID>00000000</ProcessorID><Password>jerry</Password><ProcessorCustom1>1234</ProcessorCustom1></Processor><Request><MiscInfo></MiscInfo></Request></Query>"

response.write("<p>RESPONSE STATUS: " &anXMLhttpObject.status & "<p>RESPONSE STATUS TEXT: " & anXMLhttpObject.statusText)

strResult = anXMLhttpObject.responseText

if len(stResult)=0 then
    response.write "empty"
end if

I get a status 200 for sending and a OK for the text so I believe everything is posting properly. I just can not tell if the other side is getting the data.






Similar Threads
Thread Thread Starter Forum Replies Last Post
post xml using xmlhttp in vb.net datakix Classic ASP XML 4 August 7th, 2009 05:31 AM
Request Post XMLHttp : Need Help Kyum BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 5 July 5th, 2007 09:51 PM
post xml using xmlhttp in vb.net datakix VB.NET 3 December 21st, 2004 01:31 PM
Problem with using POST method with XMLHTTP vvr Classic ASP XML 1 December 6th, 2004 01:44 AM
Using XMLHTTP to POST form data channer Classic ASP XML 8 January 6th, 2004 05:44 AM





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