StrikeIron Links
Getting Started
Developer Forum (Beta)
Subject: UserID/ Password vs. License Key
Prev Next
You are not authorized to post a reply.

Author Messages
andrewfUser is Offline

Posts:2

10/24/2007 11:32 PM  
I'd like to hide my UserID and Password (or just password) to invoke the web service, but I'm not seeing support for that in the documentation. Is there a way to pass in the license key? My ColdFusion header code looks like this:

<cfscript>
authHeader = XmlNew();
authHeader.LicenseInfo = XmlElemNew(authHeader,
"http://ws.strikeiron.com", "LicenseInfo");
authHeader.LicenseInfo.RegisteredUser = XmlElemNew(authHeader, "http://ws.strikeiron.com", "RegisteredUser");

authHeader.LicenseInfo.RegisteredUser.UserID = XmlElemNew(authHeader, "http://ws.strikeiron.com", "UserID");
authHeader.LicenseInfo.RegisteredUser.UserID.XmlText = "andrew@myserver.com";
authHeader.LicenseInfo.RegisteredUser.Password = XmlElemNew(authHeader, "http://ws.strikeiron.com", "Password");
authHeader.LicenseInfo.RegisteredUser.Password.XmlText = "mypassword"; </cfscript>

I would expect the key-based invocation to look something like this (or with "LicenseKey" instead of "Key"), but I keep getting an error:
<cfscript>
authHeader = XmlNew();
authHeader.LicenseInfo = XmlElemNew(authHeader,
"http://ws.strikeiron.com", "LicenseInfo");
authHeader.LicenseInfo.RegisteredUser = XmlElemNew(authHeader, "http://ws.strikeiron.com", "RegisteredUser");

authHeader.LicenseInfo.RegisteredUser.Key = XmlElemNew(authHeader, "http://ws.strikeiron.com", "Key")
authHeader.LicenseInfo.RegisteredUser.Key.XmlText = "mykey234234234"; </cfscript>

Can you point me in the right direction for using the license key structure?
It's not a huge deal, so let me know if I'm incorrect in thinking that I can invoke the service with the key, but I'm seeing content on the "My Web Services" page in my account that leads me to believe that it should be doable.

Thanks,

- Andrew
dnielsenUser is Offline

Posts:6

10/24/2007 11:34 PM  
You can use your license key in place of the UserId. For example:

authHeader.LicenseInfo.RegisteredUser.UserID.XmlText = "23SDLA8A124AOANTA4W";

Dave Nielsen
StrikeIron Developer Program
http://developer.strikeiron.com
andrewfUser is Offline

Posts:2

10/24/2007 11:35 PM  
OK, that does work. Just noticed a typo on my part. Thanks for following up on that.

- Andrew
You are not authorized to post a reply.
Forums > Web Services > Integration & Setup > UserID/ Password vs. License Key



ActiveForums 3.7
Top Projects




Sun / NetBeans

Salesforce.com

IBM QEDWiki

Microsoft Visual Studio VSTO

Zend

 

Special Events

Mashup Camp
Oct 6-8

Web 2.0 Expo
Sept 16-19