Hello all,
Here is my scenerio
I have three asp files. 1) logon.asp 2) getdata.asp 3) logoff.asp
what I have acheived is sending the XML data to the server and getting back the response in xml from each of the files.
Now what I have to do is
1) when I get the data back in XML, how do I get the values out of it using Javascript
I am getting back either success or failure when I run the logon.asp file.
How do I capture the "success", if it is success then get the data using getdata.asp code,( now in getdata.asp also I am sending XML and receiveing the data in XML and this time I want that XML to be written to a file. and then lastly do logoff.asp.
All these have to be done with just One click of button. and all three have to be in one file. The user should not know what is happening background.
When he clicks the button, he should Logon, if the XML returned Success, then do GETDATA.ASP code and get data, write it to a file and then logoff.
Also in my getdata.asp page I have hardcoded the PersonNumber="95198" value, since i have the value is asp page , how do i pass that varialable instead of hardcoding.
Here are the pages I have created.
I would really appreciate if you guys could help me out.
Thanks in advance.
LOGON.ASP
<html>
<body>
<form
action = "
https://wd007kyrnosdv007/wfc/XmlService"
method = "POST">
<TEXTAREA rows =20 cols=100 id =KronosXML name=KronosXML>
<?xml version="1.0" ?>
<Kronos_WFC version="1.0">
<Request
Object="System"
Action="Logon"
Username="SuperUser"
Password="password"
/>
</Kronos_WFC>
</TEXTAREA></BR>
<INPUT type ="submit" value = "Logon">
</form>
</body>
</html>
GETDATA.ASP
<html>
<body>
<form
action = "
https://wd007krynosdv007/wfc/XmlService"
method = "POST">
<TEXTAREA rows =20 cols=100 id =KronosXML name=KronosXML>
<?xml version="1.0" ?>
<Kronos_WFC version="1.0">
<Request Action="Load">
<AccrualData BalanceDate="10/1/05">
<Employee>
<PersonIdentity PersonNumber="95198" />
</Employee>
</AccrualData>
</Request>
</Kronos_WFC>
</TEXTAREA></BR>
<INPUT type ="submit" value = "Logon">
</form>
</body>
</html>
the third one LOGOFF.ASP is similar to logon.asp.