Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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
  #1 (permalink)  
Old July 16th, 2003, 10:00 AM
Authorized User
Join Date: Jul 2003
Location: , New Jersey, .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Receiving XML Transmit

I have code to transmit an XML file to a Secure Socket Layer.
************************************************** ********
  Dim objSrvHTTP

  Set objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
  objSrvHTTP.open "POST", "https://wwwcie.ups.com/ups.app/xml/Rate",false
  objSrvHTTP.SetRequestHeader "Content-Type","application/x-www-form-urlencoded"
  objSrvHTTP.send (strMessage)
  strResponseMessage = objSrvHTTP.responseText
  intHTTPStatusCode = objSrvHTTP.status
************************************************** ***********
Now I would like to know how you can receive a transmitted XML file, create an HTTP status code, send back the HTTP status code to the sender, and write the received file to a directory.

I essentially know how to write a file to a directory but I need the initial steps for the receiver.

Thanks for any help you can offer.


  #2 (permalink)  
Old July 16th, 2003, 03:23 PM
Friend of Wrox
Join Date: Jun 2003
Location: Wien, Wien, Austria.
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn

Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = False
Set xmlDocErr =  xmlDoc.parseError 
'check if incoming XML is parsed successfuly
If (xmlDocErr.errorCode <>  0) Then
    'display arror message or whatever
    'process XML document
End If
...but the Soon is eclipsed by the Moon

Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving MSMQ Messages obrienkev C# 0 August 25th, 2008 05:17 AM
Receiving mail rajanikrishna Classic ASP Basics 11 November 24th, 2004 05:06 AM
Variable Value fails to transmit jefferis Beginning PHP 6 September 2nd, 2004 08:31 AM
Finding , Locatin and Receiving data with XML. betzy XML 2 May 25th, 2004 07:45 AM

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