Callback failing
Monday, November 14, 2016 at 12:43pmHello,
I had successfully set up a callback on Package Completed in my Development environment that worked fine, now I have moved to a beta test server that is using SSL and the call back is failing?
In the Sandbox I have a url https://myurl 
and I have a Callback Key
But my last two test sent an email saying failed to 
Failed to communicate with the callback server.
URL: https://myadbeta.trilogyir.com/ADFile/SaveSignedFile
Payload: {"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_COMPLETE","sessionUser":"7c521a78-a512-4d3e-9cd6-1485d78e3f7c","packageId":"36599759-63fd-4838-9832-d854fefe39bd","message":null,"documentId":null}
What am I missing?
Thanks,
Todd
      
                                    
Reply to: Callback failing
Monday, November 14, 2016 at 04:14pmHave you tried installing the GlobalSign root certificate? See at the link below: https://community.onespan.com/products/onespan-sign/sdks Let me know.
Reply to: Callback failing
Tuesday, November 15, 2016 at 02:30pm[AllowAnonymous] public ActionResult SaveSignedFile() { string eSignUrl = ConfigurationManager.AppSettings["eSignUrl"]; string eSignApiKey = ConfigurationManager.AppSettings["eSignApiKey"]; string DocumentId = string.Empty; string DocumentName = string.Empty; string appDataFolder = HttpContext.Server.MapPath("~/App_Data/"); try { // Get the received request's headers var requestheaders = HttpContext.Request.Headers; // Get the received request's body var requestBody = string.Empty; using (var reader = new System.IO.StreamReader(HttpContext.Request.InputStream)) { requestBody = reader.ReadToEnd(); } JObject jsonBody = JObject.Parse(requestBody); string packageId = jsonBody["packageId"].ToString(); if (!string.IsNullOrEmpty(packageId)) { EslClient eslClient = new EslClient(eSignApiKey, eSignUrl); PackageId pkgId = new PackageId(packageId); // DO I NEED to add the Callback Key here? DocumentPackage documentPackage = eslClient.GetPackage(pkgId); Guid userGuid = new Guid(documentPackage.Attributes.Contents["UserGuid"].ToString()); foreach (Document mydoc in documentPackage.Documents) { DocumentId = mydoc.Id; DocumentName = mydoc.Name; if (!DocumentName.Contains("Electronic Disclosures")) { byte[] myDocument = eslClient.DownloadDocument(pkgId, DocumentId); //TO DO: Do something with the document System.IO.File.WriteAllBytes(appDataFolder + DocumentName + ".pdf", myDocument); ADFile thisFile = new ADFile(); thisFile.ADFileId = 0; thisFile.UserGuid = userGuid; thisFile.ADFileName = DocumentName + ".pdf"; thisFile.UploadedDate = DateTime.Now; thisFile.ExpiresDate = DateTime.Now.AddYears(2); adFileRepository.SaveADFile(thisFile); //TODO Update the Package based on the UserGuid ADForm myForm = adformRepository.ADForms .Where(f => f.UserGuid == userGuid) .FirstOrDefault(); if (myForm != null) { myForm.ADFormStatus = "FileUploaded"; myForm.LastUpdate = DateTime.Now; adformRepository.SaveADForm(myForm); } } } } return new HttpStatusCodeResult(200);Thanks, ToddReply to: Callback failing
Tuesday, November 15, 2016 at 03:53pmDid you only set up the callback key for this one? Or were you using it before? What the callback key does is pass a value through the authorization header of the http call so that you can check that it's a valid call coming from eSignLive. If it contained no key or the wrong key, you'd know it wasn't from us. It will come through the auth header like: "Basic YOUR_KEY". As for not getting the bad communication emails anymore, are you able to see the call hitting your server in your logging or anything? You might also make sure you white list the eSignLive IP addresses, in case your firewall is blocking the communication. https://community.onespan.com/documentation/onespan-sign/guides/quick-start-guides/developer/environment-urls-ip-addresses#aanchor88
Reply to: Callback failing
Wednesday, November 16, 2016 at 06:23amReply to: Callback failing
Wednesday, November 16, 2016 at 06:59amReply to: Callback failing
Wednesday, November 16, 2016 at 07:53amReply to: Callback failing
Wednesday, November 16, 2016 at 08:09amReply to: Callback failing
Wednesday, November 16, 2016 at 08:15amReply to: Callback failing
Wednesday, November 16, 2016 at 10:25amReply to: Callback failing
Wednesday, November 16, 2016 at 11:16amthisPackage.WithAttributes(new DocumentPackageAttributesBuilder() .WithAttribute("UserGuid", userGuid));And I am retrieving that UserGuid from the package Like this:DocumentPackage documentPackage = eslClient.GetPackage(pkgId); Guid userGuid = new Guid(documentPackage.Attributes.Contents["UserGuid"].ToString());I also checked Event Viewer and IIS logs on the server and nothing is jumping out at me showing the Callback being blocked.Reply to: Callback failing
Wednesday, November 16, 2016 at 11:40amReply to: Callback failing
Wednesday, November 16, 2016 at 12:03pmReply to: Callback failing
Wednesday, November 16, 2016 at 12:15pmReply to: Callback failing
Wednesday, November 16, 2016 at 05:23pmReply to: Callback failing
Thursday, November 17, 2016 at 10:00amReply to: Callback failing
Thursday, November 17, 2016 at 10:04am