ValidateByItem XML API Documentation (Last Modified: 10/8/2001 1:23:28 PM)

Basic Concepts
The ValidateByItem XML API provides a validation of a unique item value and password combination.
The base URL of this API is http://api.cisp.com/ValidateByItem.XML.asp.
 
Input Variables
Name Description
ClientID Client code identifying the client information to access
ItemID ID of the item to validate
Value Value for the item
Password Customer password for accessing the customer support account management web utility
Name Min Max Type Required
ClientID 4 4 String True
ItemID N/A N/A Long True
Value N/A N/A String True
Password 6 8 String True
 
Return Document
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.
Validate Output Variables
Name Description Type
CUSTOMER_ID ID of the customer Long
VALID Boolean value of whether the item value and password are valid Boolean
 
Sample Output
<?xml version="1.0" ?>
<ICOP>
- <VALIDATE CUSTOMER_ID="1" VALID="True" />
</ICOP>
 
Sample ASP Code
<%
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/ValidateByItem.XML.asp?ClientID=DEMO&ItemID=1&Value=john@demo.net&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("ValidateByItem.xsl")

' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>