6. Launch the job Code snippet to invoke JobSubmit API to submit a fax job. // Everything is Setup Prepare to Launch Job // Setup Request and JobSubmitRequest object Fax.EMsgAPI_JobSubmit201101.Request Request = new Fax.EMsgAPI_JobSubmit201101.Request(); Fax.EMsgAPI_JobSubmit201101.Response Response = new Fax.EMsgAPI_JobSubmit201101.Response(); Fax.EMsgAPI_JobSubmit201101.JobSubmitRequest JS_Request = new Fax.EMsgAPI_JobSubmit201101.JobSubmitRequest(); Fax.EMsgAPI_JobSubmit201101.JobSubmitResult JS_Result = new Fax.EMsgAPI_JobSubmit201101.JobSubmitResult(); // Setup Proxy server and EMsgAPIConnect URL for posting data EM.Url = "EasyLinkURL"; //the EasyLink URL to submit to. Example: https://test2messaging.easylink.com/soap/sync // Setup Request Object Request.ReceiverKey = EM.Url; Request.Authentication = reqAuth; Request.RequestID = "RequestID"; JS_Request.SubmitId = "SubmitId"; // Assign Request and Response objects to EM Object EM.RequestValue = Request; EM.ResponseValue = Response; JS_Request.Message = JS_Message; JS_Request.DocumentSet = JS_Documents; try { JS_Result = EM.JobSubmit(JS_Request); } catch (Exception ex) { System.Console.WriteLine(ex.Message); System.Console.Read(); return; }
Code snippet to invoke JobSubmit API to submit a fax job.
Version 1.0