| The Validate XML API provides a validation of a login and password combination. |
| The base URL of this API is http://api.cisp.com/Validate.XML.asp. |
| |
| Name |
Description |
| ClientID |
Client code identifying the client information to access |
| ID |
ID of the customer |
| Login |
Customer dialup account login |
| Password |
Customer password for accessing the customer support account management web utility |
|
| Name |
Min |
Max |
Type |
Required |
| ClientID |
4 |
4 |
String |
True |
| ID |
N/A |
N/A |
Long |
If Login is not provided |
| Login |
N/A |
N/A |
String |
If ID is not provided |
| Password |
6 |
8 |
String |
True |
|
| |
| The return value is a standard XML document with ICOP as the root node. |
| Each section of the output variables listed below is a child node to the ICOP node. Each parameter within that section is an attribute to that section's node. |
| Name |
Description |
Type |
| CUSTOMER_ID |
ID of the customer |
Long |
| VALID |
Boolean value of whether the login and password are valid |
Boolean |
|
| |
<?xml version="1.0" ?>
<ICOP>
- <VALIDATE CUSTOMER_ID="1" VALID="True" />
</ICOP>
|
| |
<%
Option Explicit
Dim objXML, objXSL
' Create the MSXML DOMDocument object for the xml document output of the API
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.load "http://api.cisp.cc/Validate.XML.asp?ClientID=DEMO&ID=1&Password=mysecret"
' Create the MSXML DOMDocument object for the xsl stylesheet to transform the xml
Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
objXSL.async = False
objXSL.load Server.MapPath("Validate.xsl")
' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>
|