Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
| 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
 
Old May 22nd, 2006, 01:10 PM
Authorized User
 
Join Date: May 2006
Location: , , India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to send and receive xml data from webService


Hello Sir,

I am collecting details of the webform
i.e. username & password) which
are converted into XML code and then whole
XML code is converted into a one string.

I will send this String to ohter website which accepts the data in XML format converted into String and than verify my data
(i.e. username & password) and accordingly reply me in XML format.

If my data are of valid user than it will give me "<result>1</result>"
If my data are not of valid user than it will give me "<result>0</result>"

So this is the whole process

I am able to send the data and i am sure that interaction with their website is estabilished successfullly but i do not get response from their site.

Following is my code for showing response which contains the bug

--------Code starts here----------

'-------------------------------------------------------------
' Get XML response from xmlSvr
'-------------------------------------------------------------

    Response.Write "<b>Creating object for domDocument</b><br>"
    Dim Response_Doc
    Set xmlDoc2 = CreateObject("MSXML2.DOMDocument")
    xmlDoc2.setProperty "ServerHTTPRequest", False
    xmlDoc2.async = False

    Response.Write "<b>Getting the XMLhttp.ResponseXML</b><br>"

    xmlDoc2.LoadXML XMLhttp.ResponseXML.xml

'XMLhttp is object of MSXML2.ServerXMLHTTP which send data to their site

    Response.Write "<br>"
    Response.Write "<b>xmlSvr XML Response:</b><br>"
    Response.Write "-----------------------------------------<br>"

    Response_Doc = xmlhttp.responseXML.xml
    Response.Write server.HTMLEncode(Response_Doc) & "<br>"
    Response_Doc = Replace (Response_Doc,"<","&lt;")
    Response_Doc = Replace (Response_Doc,">","&gt;")

    Response.Write Response_Doc & "<br>"
End If

--------Code ends here----------




Please help.


DK
__________________
YOUR HELP IN THIS REGARD IS HIGHLY APPRICIATED.

DK




Similar Threads
Thread Thread Starter Forum Replies Last Post
Send and Receive XML content through browser kj875 ASP.NET 2.0 Basics 0 July 27th, 2007 12:10 AM
TCP Send / Receive example Bodonn BOOK: Professional C#, 2nd and 3rd Editions 0 July 27th, 2006 04:55 PM
send/receive in MS Outlook dotnetprogrammer VS.NET 2002/2003 0 February 25th, 2005 12:01 AM
not able to receive xml data unniml Classic ASP XML 0 January 30th, 2004 09:00 AM
Send XML document to a webservice vinodveladanda XML 1 November 11th, 2003 11:46 AM





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