Server Time: Sunday May 18 2008 01:55 PM
Your Time:
Available webservices:
Captcha Web Services
Captcha Web Service (ColdFusion)
Captcha Web Service (.NET)
US Postal Code Web Services
Postal Code Web Services
Random HEX Colors (For Charts)
Random HEX Colors (For Charts)
Captcha Web Service (ColdFusion)
Component captcha
hierarchy:
WEB-INF.cftags.component
webservices.captcha
This will create all captcha requests
properties:
methods:
generateCaptcha
* - private method
generateCaptcha
remote struct generateCaptcha ( string height="70", string width="200", string font="Arial", string fontColor="E1373C", string fontSize="30", numeric fontOpacity="60", string bgcolor1="white", string bgcolor2="white", numeric quality="70", numeric distortionMethod="2", numeric XPos="50", numeric YPos="10"
)
Output: enabled
Parameters:
height: string, optional, height
width: string, optional, width
font: string, optional, font
fontColor: string, optional, fontColor
fontSize: string, optional, fontSize
fontOpacity: numeric, optional, fontOpacity
bgcolor1: string, optional, bgcolor1
bgcolor2: string, optional, bgcolor2
quality: numeric, optional, quality
distortionMethod: numeric, optional, distortionMethod
XPos: numeric, optional, XPos
YPos: numeric, optional, YPos
Coding Example
<cfscript>
// Define the values to pass to the object
theight = "350" ;
twidth = "350" ;
tfont = "Verdana" ;
tfontColor = "Black" ;
tfontSize = "12" ;
tfontOpacity = 100 ;
tbgcolor1 = "white" ;
tbgcolor2 = "white" ;
tquality = 10 ;
tdistortionMethod = 1 ;
tXPos = 10 ;
tYPos = 10 ;
</cfscript>
<cfinvoke
webservice="http://www.easycfm.com/webservices/captcha.cfc?wsdl"
method="generateCaptcha"
returnvariable="aHashMap" >
<cfinvokeargument name="height" value="#tHeight#" />
<cfinvokeargument name="width" value="#tWidth#" />
<cfinvokeargument name="font" value="#tFont#" />
<cfinvokeargument name="fontColor" value="#tFontColor#" />
<cfinvokeargument name="fontSize" value="#tfontSize#" />
<cfinvokeargument name="fontOpacity" value="#tfontOpacity#" />
<cfinvokeargument name="bgcolor1" value="#tbgcolor1#" />
<cfinvokeargument name="bgcolor2" value="#tbgcolor2#" />
<cfinvokeargument name="quality" value="#tquality#" />
<cfinvokeargument name="distortionMethod" value="#tdistortionMethod#" />
<cfinvokeargument name="XPos" value="#tXPos#" />
<cfinvokeargument name="YPos" value="#tYPos#" />
</cfinvoke>
<cfdump var= "#aHashMap#" />
Return Data Example
struct
CAPTCHAWORD
vagus
IMAGE
http://www.easycfm.com/forums/images/cotcha/15216.jpg
Captcha Web Service (.NET)
Component captcha
hierarchy:
WEB-INF.cftags.component
webservices.captcha
This will create all captcha requests
properties:
methods:
generateCaptcha
* - private method
generateCaptcha
remote xml generateCaptcha ( string height="70", string width="200", string font="Arial", string fontColor="E1373C", string fontSize="30", numeric fontOpacity="60", string bgcolor1="white", string bgcolor2="white", numeric quality="70", numeric distortionMethod="2", numeric XPos="50", numeric YPos="10"
)
Output: suppressed
Parameters:
height: string, optional, height
width: string, optional, width
font: string, optional, font
fontColor: string, optional, fontColor
fontSize: string, optional, fontSize
fontOpacity: numeric, optional, fontOpacity
bgcolor1: string, optional, bgcolor1
bgcolor2: string, optional, bgcolor2
quality: numeric, optional, quality
distortionMethod: numeric, optional, distortionMethod
XPos: numeric, optional, XPos
YPos: numeric, optional, YPos
US Postal Code Web Services
Component USPostal
returnZipByCityState
remote
xml
returnZipByCityState
(
required string
city,
required string
state
)
Output: enabled
Parameters:
city:
string, required, city
state:
string, required, state
returnZipDetails
remote
xml
returnZipDetails
(
required string
zip
)
Output: enabled
Parameters:
zip:
numeric, required, zip
returnZipDetailsByRadius
remote
xml
returnZipDetailsByRadius
(
required string
zip,
required numeric
miles
)
Output: enabled
Parameters:
zip:
numeric, required, zip
miles:
numeric, required, miles
returnZipListByRadius
remote
string
returnZipListByRadius
(
required string
zip,
required numeric
miles
)
Output: enabled
Parameters:
zip:
numeric, required, zip
miles:
numeric, required, miles
Coding Example
<cfscript>
// Define the values to pass to the object
tZip = 77968;
tMiles = 15;
</cfscript>
<cfinvoke
webservice="http://www.easycfm.com/webservices/USPostal.cfc?wsdl"
method="returnZipDetailsByRadius"
returnvariable="aHashMap" >
<cfinvokeargument name="zip" value="#tZip#" />
<cfinvokeargument name="miles" value="#tMiles#" />
</cfinvoke>
<cfdump var= "#xmlParse(aHashMap)#" />
Return Data Example
<?xml version="1.0" encoding="UTF-8"?>
<zips>
<record>
<zip>77968</zip>
<city>INEZ</city>
<state>TX</state>
<latitude>28.851753</latitude>
<longitude>-96.857725</longitude>
<county>VICTORIA</county>
<zip_class>STANDARD</zip_class>
<distance>0</distance>
</record>
<record>
<zip>77988</zip>
<city>TELFERNER</city>
<state>TX</state>
<latitude>28.838353</latitude>
<longitude>-96.887217</longitude>
<county>VICTORIA</county>
<zip_class>PO BOX ONLY</zip_class>
<distance>2.01287349293</distance>
</record>
<record>
<zip>77903</zip>
<city>VICTORIA</city>
<state>TX</state>
<latitude>28.794935</latitude>
<longitude>-96.974119</longitude>
<county>VICTORIA</county>
<zip_class>STANDARD</zip_class>
<distance>8.07422911092</distance>
</record>
<record>
<zip>77904</zip>
<city>VICTORIA</city>
<state>TX</state>
<latitude>28.90025</latitude>
<longitude>-97.001424</longitude>
<county>VICTORIA</county>
<zip_class>STANDARD</zip_class>
<distance>9.3275389509</distance>
</record>
</zips>
Random HEX Colors
webservices.colors
Component colors
(Color Generator)
* - private method
generateRandomColors
remote generateRandomColors ( required
numeric numberOfColorsToReturn
)
Output: suppressed
Parameters:
numberOfColorsToReturn: numeric,
required,
numberOfColorsToReturn
Code Example:
<cfscript>
objColors = createObject("webservice", "http://www.easycfm.com/webservices/colors.cfc?wsdl"); // initiate the webservice
variables.colorList = objColors.generateRandomColors(50); // Return a list with 50 colors to feed a chart tag
</cfscript>