Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 May 12th, 2005, 12:44 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default Urgent: Receiving Posted XML data

Hi

I have got an asp page which another webserver posts xml data to. I am able to retrieve this data by using "request.form" However, the data is not in the correct format. It looks something like this:

aws_handback=%3Chand-back+stage%3D%22ONLINE%22+success%3D%22true%22+tim estamp%3D%221115908364781%22+value

The server sending the data is UTF-8. I have tried using a XML dom parser but this does not seem to work or Im doing something wrong. I have searched on the net for hours with no luck. Most examples show data being sent and then received between servers (ServerXMLHTTP) but this is pureley another webserver posting xml data to my asp page.

Any ideas or suggestions would be highly appreciated.

Regards
Marnus
 
Old May 12th, 2005, 04:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

This is probably because the response has been encoded for data transfer, look at a using an unencoded, see http://www.planet-source-code.com/vb...txtCodeId=7215 for an example.
 
Old May 12th, 2005, 04:16 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default

Hi Greg

Thanks for your reply. I just got this thing sorted. It seems like it was very specific of where the data was posted into. All I used in the end was the following:

<form>
<textarea name="aws_handback" value="" rows="80" cols="100">
<%
    value = Request.Form("aws_handback")
    Response.ContentType = "xml"
    response.write value
%>
</textarea>
</form>

Why this worked I dont know. But it seemed to be fussy about the object called name="aws_handback"...
I havent got control over the sending system unfortunatly. But I will continue and see if this does the trick.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show fckeditor posted data? kherrerab ASP.NET 2.0 Professional 1 January 9th, 2007 05:30 PM
Receiving incorrect data from website request jvlkathyk Apache Tomcat 0 December 6th, 2006 12:02 PM
Urgent inserting data to database from xml File Venkata Krishnan ADO.NET 1 November 8th, 2005 08:58 AM
Finding , Locatin and Receiving data with XML. betzy XML 2 May 25th, 2004 07:45 AM
Receiving XML Transmit RobinR Classic ASP XML 1 July 16th, 2003 03:23 PM





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