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
-
In troubleshooting tips it is suggesting
"Use the new keyword to create an object instance."
So i tried
objMsg[0] = new MessageType();
before
objMsg[0].Destinations = lists;Issue got resolved.
Prabhakaran R
OpenText6
Answers
-
In troubleshooting tips it is suggesting
"Use the new keyword to create an object instance."
So i tried
objMsg[0] = new MessageType();
before
objMsg[0].Destinations = lists;Issue got resolved.
Prabhakaran R
OpenText6 -
@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:
0 -
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
OpenText0 -
@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
0 -
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
OpenText0 -
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.txtLet me know if anything else required from my side.
Thanks
0 -
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
OpenText0 -
@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.
0 -
@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?0 -
we have already initiated a mail conversation regarding this issue. @Tammy_Gargiulo Do you have any idea on this?
Prabhakaran R
OpenText0 -
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.txtPrabhakaran R
OpenText0 -
@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.
0 -
-
@Prabhakaran site is not reachable
Exception message:"The remote name could not be resolved: 'devxoaapp2.xpedite.com'"
0 -
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
OpenText0 -
-
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_DETAILSand fax number has to be updated here.
faxtype[0].Phone = "7xxxxxxxx";// fax number has to set hereI 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
OpenText0 -
@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
0 -
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
OpenText0 -
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/syncWhen 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?
0 -
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_DETAILSand 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
OpenText0 -
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.
0 -
Please share us the following.
- User Id .
- The Ip Address of dev machine.
- Request.xml written by the code.
Prabhakaran R
OpenText0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 146 General Questions
- 136 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 82 Digital Asset Management
- 9.3K Documentum
- 30 eDOCS
- 173 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 6 XM Fax