JobSubmitService object as service client is not available

I am trying to implement the EasyLink API and stuck on 1 point while making object for JobSubmitService object as service client is not available. I am following the link below for implementation:
https://apiforums.easylink.com/system/files/CS_JobSubmit_SMS_Single_0.txt

Attached are the snapshot and my code for clarification, please let me know I am missing something.

Best Answer

Answers

  • The issue has been resolved as i was adding the Service Reference but for WSDL we need to add Web Reference.

    I am facing another issue at the point where we provide destinations to MessageType as you can see in the screenshot:

    Please help me in this regard.

    Thanks

  • Is there anyone who can help me in reference to upper post in this thread.

    Thanks

  • @Prabhakaran R thanks your solution worked. But now code is giving exception at below line:
    JS_Result = EM.JobSubmit(JS_Request);

    Exception Message = "The remote name could not be resolved: 'endpoint.easylink.com'"

    Following is snapshot from WSDL:

  • For the code which is attached(https://apiforums.easylink.com/system/files/CS_JobSubmit_SMS_Single_0.txt) we need to use http://ws.easylink.com/JobSubmit/2009/07?WSDL as web reference. Then this will be resolved.

    Here http://ws.easylink.com/JobSubmit/2011/01?WSDL is used and code is pointing to 200907wsdl. so that exception is thrown.

    Prabhakaran R
    OpenText

  • @Prabhakaran Thanks for your quick reply. I followed your instructions about adding the web reference. I compare my code with the one you provided in the link. I am facing the following exception while sending request,

    Exception Message: "Unable to connect to the remote server"
    Inner Exception: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 206.216.32.180:80"

    Please help me in this regard.

    Note: I have commented the method for Proxy setting in my code, I am assuming that this method is for proxy setting. Please guide me if I am wrong.

    Thanks

  • I don't have idea on this. But please cross check whether server is up and running.

    I couldn't find the function definition of Set_Server_and_Proxy(EM). So i am not sure what this function was doing

    Prabhakaran R
    OpenText

  • Please see the findings from my side and let me know if I am missing something while configuring the API.

    Our network is passing the request as we have confirmed it, please see the below snapshot for your verification:

    The request has been reached out to your network but looks like your firewall is blocking it.

    The URL before sending the request is as follows:
    http://xoa.premiereglobal.com/

    Following is the code snapshot:

    Following is the snapshot for WSDL:

    We are following the link below to code the fax implementation:
    https://apiforums.easylink.com/system/files/CS_JobSubmit_SMS_Single_0.txt

    Let me know if anything else required from my side.

    Thanks

  • If Firewall is blocking please uncomment Set_Server_and_Proxy in the code and check once. I am not able to locate the definition of the function Set_Server_and_Proxy.

    Prabhakaran R
    OpenText

  • @Prabhakaran i am also unable to locate the definition of function Set_Server_and_Proxy.

    Please share the definition of method if you can manage or is there any other way around?

    Thanks.

  • @Prabhakaran we have no updates on this issue we are facing with the Set_Server_and_Proxy
    We have tried all of the solutions recommend how can we work around this?

  • we have already initiated a mail conversation regarding this issue. @Tammy_Gargiulo Do you have any idea on this?

    Prabhakaran R
    OpenText

  • Hi
    The below link has the function definiton for all the functions like Set_Server_and_Proxy
    https://apiforums.easylink.com/system/files/CS_JobSubmitFaxSingle.txt

    Prabhakaran R
    OpenText

  • @Prabhakaran thanks for the function definition. in definition it only sets the URL

    Is there any other URL which we can hit to send fax? URL in WSDL is not reachable .
    URL is : http://xoa.premiereglobal.com/

    Exception Message: "Unable to connect to the remote server"
    Inner Exception: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 206.216.32.180:80"

    Please help in this regard.

  • @Prabhakaran site is not reachable

    Exception message:"The remote name could not be resolved: 'devxoaapp2.xpedite.com'"

  • Have you given the full url http://devxoaapp2.xpedite.com:8080/syncreplier. If still not resolved , Can you share us the the complete project file and also the please mention the steps you used for testing

    Prabhakaran R
    OpenText

  • frank1228
    edited February 21, 2019 #20

    @Prabhakaran yes i am using the full link

    Code is attached kindly review.

  • Hi I have attached the code which is compiled successfully and tested by me.
    repos.zip contains two folders and EMsgAPI_Demo contains the solution file(.sln)

    Note:Before testing you should have test accounts and fax number for testing
    and you should update the test accounts detail here
    XDDSAuth.Password = "xxxxx";//Password has to be set here TESTING_DETAILS
    uid.Value = "dev/xxxx";//user id has to set here TESTING_DETAILS

    and fax number has to be updated here.
    faxtype[0].Phone = "7xxxxxxxx";// fax number has to set here

    I have used the below url for testing purpose,
    EM.Url = "http://devxoaapp2.xpedite.com:8080/syncreplier"; //the EasyLink URL to submit to.

    If you are outside company vpn you may not have access to the above url. I will check with team and update you on this url.

    As per the code,These files will be present in the directory where the binary is present.
    string reqfilename = "request.xml";
    string emfilename = "emresponse.xml";
    string resfilename = "result.xml";

    Attached output file for the reference

    Prabhakaran R
    OpenText

  • @Prabhakaran thank you for your quick response, I am still getting exception when it tries to connect to URL.

    Exception Message : "The remote name could not be resolved: 'devxoaapp2.xpedite.com'"

    I think you need o give me access to this link.

    Thanks

  • You needs to talk to a sales engineer for creating the test account. A sales engineer will provision the account in test2 and provide the URL for test2.

    Prabhakaran R
    OpenText

  • We have contacted our sales rep and he provided the following info

    I have no idea where you got the URL from -that does not work.
    The Submission URL for faxes using the API is:
    Production URL:
    https://messaging.easylink.com/soap/sync

    When we used this URL provided by our sales rep we are not getting any errors, however the end user is not receiving any fax.

    How can we remedy this issue?

  • Make sure that you have a fax number and test account to test and update the information in the below field.

    Note:Before testing you should have test accounts and fax number for testing
    and you should update the test accounts detail here
    XDDSAuth.Password = "xxxxx";//Password has to be set here TESTING_DETAILS
    uid.Value = "dev/xxxx";//user id has to set here TESTING_DETAILS

    and fax number has to be updated here.
    faxtype[0].Phone = "7xxxxxxxx";// fax number has to set here.

    The code sample that i have attached in the previous sample will give the Jobid.
    If still fax is not received , Give me the Job Id. I will check it.

    Prabhakaran R
    OpenText

  • Below is the error in screenshot I get for the Test Project you shared. I was debugging from my locl machine.
    These are the lines I edited before running the sample app.

    faxtype[0].Phone = "17326764123";

    XDDSAuth.Password = "XXXXXXX";
    uid.Value = "xxxxxxxxxxxx";

    EM.Url = "https://test2messaging.easylink.com/soap/sync";

    Am I missing anything else ?

    Note: Same userid and Pwd is working on servers and the issue is happening only on dev machines.

  • Please share us the following.

    1. User Id .
    2. The Ip Address of dev machine.
    3. Request.xml written by the code.

    Prabhakaran R
    OpenText

  • Groot
    edited July 24, 2023 #28

    Shared you the detais in other conversation.