|
|
 |
|
 |
|
| Author |
Messages |
|
andrewf
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 |
|
|
|
|
dnielsen
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 |
|
|
andrewf
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. |
|
|
|
ActiveForums 3.7
|
|
|
|
|
|
|
|
|
|