Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Code Share Comments
Replies
Topics Started
Preferences
Topic Started
Topics |
---|
Hello, I'm trying to figure out how to program a page on my IIS server to handle event notifications.
|
Replies Created
Reply to: callback listener
Thursday, June 23, 2016 at 10:42amThank you for the suggestions. I was able to create a C# ASP.NET Web API web app in Visual Studio with the following code:
____________________________________________
[root]\index.aspx.cs:
____________________________________________
namespace EsignCallbackListener
{
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
public static void LogEslEvent(EsignEvent eslData)
{
string str = "eslData.PackageID: " + eslData.PackageID;
str += "
eslData.Message: " + eslData.Message; str += "
eslData.DocumentID: " + eslData.DocumentID; // log and/or email the data... } } } ____________________________________________ [root]\Model\EsignEvent.cs: ____________________________________________ namespace EsignCallbackListener.Model { public class EsignEvent { public string EventName { get; set; } public string SessionUser { get; set; } public string PackageID { get; set; } public string Message { get; set; } public string DocumentID { get; set; } } } ____________________________________________ [root]\web.config ____________________________________________
In another localhost web project I have this sample code:
form.html:
When I submit/post from my local IIS form.html to our production public web server (http://esign.svr.com/index.aspx/LogEslEvent) it works.
I went to https://sandbox.e-signlive.com/account and set the Callback URL to http://esign.svr.com/index.aspx/LogEslEvent. However, when I create a test package interactively in the sandbox I receive the following email:
Subject: e-SignLive Callback failed.
Body: Failed to communicate with the callback server.
URL: http://esign.svr.com/index.aspx/LogEslEvent
Payload: {"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_CREATE","sessionUser":"27Wy8TKVeo7V","packageId":"b64fd729-27f6-4584-a75f-856f4ee7bec5","message":null,"documentId":null}
eslData.Message: " + eslData.Message; str += "
eslData.DocumentID: " + eslData.DocumentID; // log and/or email the data... } } } ____________________________________________ [root]\Model\EsignEvent.cs: ____________________________________________ namespace EsignCallbackListener.Model { public class EsignEvent { public string EventName { get; set; } public string SessionUser { get; set; } public string PackageID { get; set; } public string Message { get; set; } public string DocumentID { get; set; } } } ____________________________________________ [root]\web.config ____________________________________________
Reply to: E-SL Event Integration with Google App Engine
Monday, June 27, 2016 at 07:31amLen, thanks for posting this tutorial. I followed it to the best of my ability and was able to finally browse to https://[myelistenerinstancename].appspot.com and the browser did show the following:
e-SignLive Listener Example
packages created = 0
packages completed = 0
packages bounced = 0
I then created a new package in e-SignLive, but received an error via email...
Failed to communicate with the callback server.
URL: https://[myelistenerinstancename].appspot.com
Payload: {"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_CREATE","sessionUser":"2WWy7SSVeoUV","packageId":"5b47fcf1-cadb-4ea0-8f5e-52851cbb47s7","message":null,"documentId":null}
Any thoughts?
Kind regards,
Ben Williams
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
Hello, I'm trying to figure out how to program a page on my IIS server to handle event notifications.
|
3 | 7 years 10 months ago | 90 |
Subscriptions Release Notes
This user is not subscribed to any release notes.