This is my first attempt to use this API. In C# I am trying to submit a Fax Job. The results I get back say I am having authentication issues. However, if I use the Authentication WebService to just validate my credentials it tells me I am Authenticated OK. I am not sure why when I try submitting a Fax JOb I am getting the Auth Errors Below.
Status Code = 2209 - USer Authentication Not Accepted
In the Error List I found Status Code = 2909 USer Authentication Not Accepted : login not permitted: reason code = 1000 msg-not Found
Web Service Job Submit : http://ws.easylink.com/JobSubmit/2011/01?WSDL
Web Service Auth : http://ws.easylink.com/Authenticate/2011/01?WSDL
tbJobSubmitURL: http://test2messaging.easylink.com/soap/sync
public void jobSubmitRequestFax()
{
// Base Setup
EMsgAPI_WS.JobSubmitService emAPI = new EMsgAPI_WS.JobSubmitService();
EMsgAPI_WS.RequestAuthentication reqAUTH = new EMsgAPI_WS.RequestAuthentication();
reqAUTH.Item = getAuthentication(tbUserID.Text,tbUserPasscode.Text);
EMsgAPI_WS.MessageType[] jsMESSAGE = new EMsgAPI_WS.MessageType[1];
jsMESSAGE[0] = new EMsgAPI_WS.MessageType();
//Delivery Type
DateTime startDateValue = DateTime.Now;
DateTime endDateValue = DateTime.Now.AddMinutes(5);
EMsgAPI_WS.DeliveryType schedDELIVERY = new EMsgAPI_WS.DeliveryType();
schedDELIVERY.Schedule = EMsgAPI_WS.ScheduleType.scheduled;
schedDELIVERY.ScheduleSpecified = true;
schedDELIVERY.StartTimeSpecified = true;
schedDELIVERY.StopTimeSpecified = true;
schedDELIVERY.StartTime = startDateValue; schedDELIVERY.StopTime = endDateValue;
// Job and Fax Options
EMsgAPI_WS.JobOptionsType jsJOBOPTION = new EMsgAPI_WS.JobOptionsType();
EMsgAPI_WS.FaxOptionsType jsFAXOPTION = new EMsgAPI_WS.FaxOptionsType();
EMsgAPI_WS.EncodableStringType jsBCODE = new EMsgAPI_WS.EncodableStringType();
EMsgAPI_WS.EncodableStringType jsCREF = new EMsgAPI_WS.EncodableStringType();
jsFAXOPTION.FaxMode = EMsgAPI_WS.FaxModeType.fine;
jsFAXOPTION.FaxModeSpecified = true;
jsFAXOPTION.DeliveryRetryPattern = "11";
if (!string.IsNullOrEmpty(tbBillingCode.Text))
{ jsBCODE.Value = tbBillingCode.Text; } jsJOBOPTION.BillingCode = jsBCODE;
EMsgAPI_WS.EncodableStringType js_cref = new EMsgAPI_WS.EncodableStringType();
if (!string.IsNullOrEmpty(tbCustomerReference.Text))
{ jsCREF.Value = tbCustomerReference.Text; } jsJOBOPTION.CustomerReference = jsCREF; jsJOBOPTION.FaxOptions = jsFAXOPTION; jsMESSAGE[0].JobOptions = jsJOBOPTION;
// Set Pilot Line
//EMsgAPI_WS.FaxPilotlineOptionType pilotLINE = new EMsgAPI_WS.FaxPilotlineOptionType();
//switch (aaaa)
//{
// case "1":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type1;
// break;
// case "2":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type2;
// break;
// case "3":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type3;
// break;
// case "4":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type4;
// break;
// case "5":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type5;
// break;
// case "6":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type6;
// break;
// case "7":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type7;
// break;
// case "8":
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.type8;
// break;
// default:
// PilotLine.PilotlineStyle = EMsgAPI_Demo.EMsgAPI_JobSubmit_200907.PilotlineStyleType.none;
// break;
//}
//pilotLINE.PilotlineStyleSpecified = true;
//pilotLINE.PilotlineText = "PILOTLINETEXT";
// Setup Document Content
EMsgAPI_WS.DocumentType[] jsDOCUMENTS = new EMsgAPI_WS.DocumentType[2];
jsDOCUMENTS[0] = new EMsgAPI_WS.DocumentType();
EMsgAPI_WS.DocDataType docDATA = new EMsgAPI_WS.DocDataType();
String strFILE;
docDATA = new EMsgAPI_WS.DocDataType();
strFILE = ReadAndEncodedFile(tbDocumentToSend.Text, true);
docDATA.format = EMsgAPI_WS.DocEncodingFormat.base64;
docDATA.Value = strFILE; jsDOCUMENTS[0].Item = docDATA;
EMsgAPI_WS.EncodableStringType myFILNAME = new<span style="font-family: Conso