It sounds like you're passing the product key and not the product key id. You have to use the limelm.pkey.getID function to get the product key id from the product key.
I call LimeLM.GetDetails from within my .NET web service with double-checked good APIKey and ProductKey, but I always get back the Invalid pkey_id message.
My code looks like this:
namespace ADTWebService{ public class LicenseMgr { const string versionID = "1032";
public LicenseMgr() { LimeLM.APIKey = "1n2ntq55130b043575a55.48891123"; } public bool IsValidInstrument(string k, string i) { string s = LimeLM.GetDetails(k);// do some validation return true; } }
The posted string is:method=limelm.pkey.getDetails&pkey_id=[the first product key in our list]&api_key=[the api key from the settings page]
The return xml string is:<?xml version="1.0" encoding="utf-8"?><rsp stat="fail"><err code="1" msg="Invalid pkey_id - product key not found."/></rsp>
I cannot see what I might be doing wrong.
It sounds like you're passing the product key and not the product key id. You have to use the limelm.pkey.getID function to get the product key id from the product key.