Doug's Resume
OO Lexicon
Chat with Doug!
Recent Entries
You may also be interested in...

heaters
hotels boeken in 7 sec
Engagement Rings
Online Dating Australia




SURF'S UP!
You:
Your Web Site:
<< May, 2008 >>
SMTWTFS
123
45678910
11121314151617
18192021222324
25262728293031
Search Blog

ColdFusion Jobs
Recent Comments
Re: Viewing Option Text (in IE7) that's Wider than the Select List (by Dan Roberts at 5/15 10:06 AM)
Re: Inline CSS and Ajax Issue with IE (by Ben Nadel at 5/14 11:50 AM)
Re: The Perfect Alternative to Gas Powered Vehicles (by Thomas Messier at 5/09 12:47 PM)
Re: Promoting Family Unity: Lowering Your Utility Bills! (by Fernando Lopez at 5/07 10:12 PM)
Re: Why I Hate ORMs (a solicited rant) (by Richard at 5/06 10:56 AM)
Re: Why I Hate ORMs (a solicited rant) (by dougboude at 5/06 10:27 AM)
Re: Why I Hate ORMs (a solicited rant) (by Richard at 5/06 6:50 AM)
Re: Why I Hate ORMs (a solicited rant) (by Sean Corfield at 5/06 1:40 AM)
Re: Why I Hate ORMs (a solicited rant) (by Steve Bryant at 5/05 5:07 PM)
Re: Why I Hate ORMs (a solicited rant) (by dougboude at 5/05 4:36 PM)
Categories
Archives
Photo Albums
Funnies (5)
Family (3)
RSS
Reciprocal Links

Powered by
BlogCFM v1.11

13 August 2007
OO Lexicon Available as Webservice
Some time back someone asked me if I would consider exposing my personal OO lexicon as a webservice. My answer was yes. However, I didn't get around to doing it until just today. I've decided to secure it, so if you're interested in consuming it, just email me (email address buried in my funky "Yahoo Personals" style resume) and I'll likely give you access to it. Okay, here are the particulars:

webservice address: http://www.dougboude.com/webservices/DBLEXICON.cfc?wsdl

Return type: either XML or native CF Query, that's up to the consumer

Sample call and processing for XML return:
<cfset ws = createobject("webservice","http://www.dougboude.com/webservices/DBLEXICON.cfc?wsdl") />
<cfset lex = ws.getLexicon(username=[your username],password=[your password],toXML = 1) />
<cfset xPath = "//ITEM">
<cfif isxml(lex)>
    <cfset terms = xmlSearch(lex,xpath)>
    <cfoutput>ITEM COUNT: #arraylen(terms)#</cfoutput>
    <br>
    <cfloop from="1" to="#arraylen(terms)#" index="i">
            <CFOUTPUT>#terms[i].Category.xmlText# <STRONG>#terms[i].term.xmlText#</STRONG> - #terms[i].definition.xmlText#</CFOUTPUT><br />
    </cfloop>
</cfif>

Sample call and processing for CF Query return:
<cfset ws = createobject("webservice","http://www.dougboude.com/webservices/DBLEXICON.cfc?wsdl") />
<cfset lex = ws.getLexicon(username=[your username],password=[your password],toXML = 0) />
<cfoutput query="lex" group="category">
        <h2>#lex.Category#</h2>
        <cfoutput>
            <STRONG>#lex.term#</STRONG><br />#lex.definition#<br />
        </cfoutput>
        <hr />
</cfoutput>

Since I'm requiring authentication upon invocation, and since the contents of the lexicon aren't changing all that often, I recommend that you just cache the results after the first call and refresh once a day or so.

Oh, one last thing while we're on the subject...

I know that my lexicon is much less than fully comprehensive, so if anybody has any suggested terms to add and a starter definition to go along with it, I'd be glad to consider them for addition.

Doug out.



Posted by dougboude at 5:56 PM | PRINT THIS POST! |Link | 4 comments
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: OO Lexicon Available as Webservice
ok i haven't even read this post, but had to comment on your resume. dude that's AWESOME! :)
Posted by charile griefer on August 13, 2007 at 6:13 PM

Re: OO Lexicon Available as Webservice
Thanks for the kudos Charlie!

I laid it out in that format because I was trying to impress a prospective employer whose fairly recent solicitation said that creativity counted when submitting a resume. Haven't heard back from that person yet one way or the other...hopefully I will!
Posted by dougboude on August 13, 2007 at 9:52 PM

Re: OO Lexicon Available as Webservice
You have a typo on the "Work History" page.

Distributor Central: You have an extra "t".
"Documentt components, tags, and modifications to code."
Posted by Bryan on August 14, 2007 at 1:13 PM

Re: OO Lexicon Available as Webservice
Thanks Bryan. All fixed!
Posted by dougboude on August 14, 2007 at 1:18 PM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Time to take the Turing Test!!!

What letter comes two place(s) before the letter F?
Type your answer exactly two time(s) in the designated box.

Type in the answer to the question you see above:

Your comment:

Sorry, no HTML allowed!