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,"<","<")
Response_Doc = Replace (Response_Doc,">",">")
Response.Write Response_Doc & "<br>"
End If
--------Code ends here----------
Please help.
DK
__________________
YOUR HELP IN THIS REGARD IS HIGHLY APPRICIATED.
DK
|