Hi everyone...
I'm just yelling all the day to this program in order to make it work...
I succesfully get the Package message work but i cannot make the GBLink working... i always get the "E_ADEPT_URL_SIGNATURE_ERR http://dev1:8080/fulfillment/URLLink.acsm GBLINK_AUTH_SIGNATURE_NOMATCH" error
I am writing in C# and this is the code i use to make the GBLINK
public static string CreateHMAC(string xmlElement) {
string key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //--THIS IS THE shared secret key you can find in the admin console for the distributor
HMACSHA1 myhmacsha1 = new HMACSHA1(Convert.FromBase64String(key));
byte[] hashValue = myhmacsha1.ComputeHash(Encoding.UTF8.GetBytes(xmlElement));
myhmacsha1.Clear();
return ByteToString(hashValue);
}
public static string ByteToString(byte[] buff) {
string sbinary = "";
for (int i = 0; i < buff.Length; i++) {
sbinary += buff[i].ToString("X2"); // hex format
}
return (sbinary.ToLower());
}
string rightsRequested = "";
string orderSource = "XXXXX"; //--This is the distributor name
string url =
"http://dev1:8080/fulfillment/URLLink.acsm?action=enterorder" +
"&ordersource=" + HttpUtility.UrlEncode(orderSource) +
"&orderid=1&resid=" + HttpUtility.UrlEncode(resourceID) +
"&rights=" + HttpUtility.UrlEncode(rightsRequested) +
"&gbauthdate=" + HttpUtility.UrlEncode(DateTime.Now.ToString("MM/dd/YYYY HH\\:mm UTC")) +
"&dateval=" + HttpUtility.UrlEncode(DateTime.Now.ToString("MM/dd/YYYY HH\\:mm UTC")) +
"&gblver=" + HttpUtility.UrlEncode("3") +
"&auth=";
string hmac = XmlUtil.CreateHMAC(url);
ANY help will be grateful appreciated!
Francesco,
You are including the url and auth params in the portion to be signed when you shouldn't.
Your code should look more like:
string baseUrl = "http://dev1:8080/fulfillment/URLLink.acsm?"
string params= "action=enterorder" +
"&ordersource=" + HttpUtility.UrlEncode(orderSource) +
"&orderid=1&resid=" + HttpUtility.UrlEncode(resourceID) +
"&rights=" + HttpUtility.UrlEncode(rightsRequested) +
"&gbauthdate=" + HttpUtility.UrlEncode(DateTime.Now.ToString("MM/dd/YYYY HH\\:mm UTC")) +
"&dateval=" + HttpUtility.UrlEncode(DateTime.Now.ToString("MM/dd/YYYY HH\\:mm UTC")) +
"&gblver=" + HttpUtility.UrlEncode("3");
string hmac = XmlUtil.CreateHMAC(params);
string url = baseUrl + params + "&auth=" + hmac;
Also note that orderid (or transaction id) is a key field within the acs4 database it should be unique for each new order.
Packaging problems:
I'm tring to package with this command:
java.exe -Xmx1024M –jar C:\uploadtest\UploadTest-1_2.jar http://www.futurbook.com:8080/packaging/package c:\acs4\srcbooks\MonteCristo.epub –pass MYCONTENTSERVERPASSWORD
But I get a error like: java.io.FileNotFoundException. (The same error abobe) But I can reach the solution. I have tried everything!
Can any one help me?? sergi@futurbook.com
I have to admit that this thread was quite useful to help me to setup my ACS4 server. I also need to thank Jim for the tips regarding the -name parameter to generate the p12 file (here: http://forums.adobe.com/message/2097395#2097395)
Right now i'm migrating the ACS3 to my new ACS4. I've got something like 14000 files to migrate, but after something like 3000, the ACS4 console couldn't display the list of files migrated. I've got the message
ERROR: Could Not Reach Server
[FaultEvent fault=[RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."] messageId="AA9E2BB9-FBE1-9502-F633-EAFE697349C3" type="fault" bubbles=false cancelable=true eventPhase=2]
where messageId value change everytime I try to click on All Items, under Operator Inventory. What's the problem ? Too much data for my hardware ?
If you are having problems all the way around, I would suspect a database connectivity issue, however the best thing to do would be to look at the sources of information ( the error, the log files, and the configuration file ), and if that doesn't help then send them to support who can help you diagnose the problem.
North America
Europe, Middle East and Africa
Asia Pacific