Issues encountered with JobSubmitService
Hi,
I was trying out the java code for 2.6 as found on this link: https://apiforums.easylink.com/system/files/JavaFaxSample2.6_0.txt
However, after generating the java classes and stubs from wsdl, I can see that JobSubmitService is an interface which as a result, gives the "cannot instantiate" error in the code below (underlined in red)
Where can I get this class file for this implementation?
As a workaround and for me to proceed, I saw that there's a JobSubmitServiceLocator so I decided to use it as shown in the code below:
however, I'm getting the following exceptions/error in the console log excerpts when I ran the code:
...........
org.apache.axis.ConfigurationException: No service named JobSubmitPort is available
at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
at org.apache.axis.client.Call.invoke(Call.java:2690)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.easylink.ws.JobSubmit._2011._01.JobSubmitBindingStub.jobSubmit(JobSubmitBindingStub.java:874)
at jp.co.ricoh.xgp.sdip.plugin.output.tofax2mail.FaxSample.main(FaxSample.java:159)
..............
org.apache.axis.ConfigurationException: No service named XOAJobSubmit is available
at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)
at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)
at org.apache.axis.client.Call.invoke(Call.java:2738)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.easylink.ws.JobSubmit._2011._01.JobSubmitBindingStub.jobSubmit(JobSubmitBindingStub.java:874)
at jp.co.ricoh.xgp.sdip.plugin.output.tofax2mail.FaxSample.main(FaxSample.java:159)
............
(404)Not Found
I have also attached in the code above that I used.
Please let me know if I missed anything or if I did something wrong.
Best Answer
-
I could see you are setting ENDPOINT_ADDRESS_PROPERTY from javax.xml.ws.BindingProvider which is not correct.
Please change it to bs._setProperty(JobSubmitBindingStub.ENDPOINT_ADDRESS_PROPERTY, "https://test2messaging.easylink.com/soap/sync");
0
Answers
-
Hi Angief,
Can you try using jobsubmit method present in JobSubmitBindingStub?
Can you also let us know how you are generating the java classes and stub from wsdl?
Thanks
0 -
Thanks for your reply.
In generating the classes, I used the New Project wizard as a Web Service Client in Eclipse then specified the WSDL location as shown below:
Below are some of the classes that were generated after doing the step above:
Btw, I have tried to use jobSubmit from JobSubmitBindingStub as you suggested but I got the error below:
When I tried to set the property with the endpoint address as shown:
I'm getting the error below:
javax.xml.rpc.JAXRPCException: Property name javax.xml.ws.service.endpoint.address not supported.
at org.apache.axis.client.Stub._setProperty(Stub.java:141)
at jp.co.ricoh.xgp.sdip.plugin.output.tofax2mail.FaxSample.main(FaxSample.java:144)
Would you happen to know how to proceed or to set the endpoint somewhere? Please let me know.
0 -
We are looking into the issue and get back to you at the earliest
0 -
I could see you are setting ENDPOINT_ADDRESS_PROPERTY from javax.xml.ws.BindingProvider which is not correct.
Please change it to bs._setProperty(JobSubmitBindingStub.ENDPOINT_ADDRESS_PROPERTY, "https://test2messaging.easylink.com/soap/sync");
0 -
Thanks for your reply. The issue was resolved after setting it to your suggestion above.
I am now getting the following error after the running the code:
"2209 User authentication not accepted"
Right now, I am using the credentials that I used in logging in to: https://myportal.opentext.com
and set it in XDDSAuthType and eventually into RequestAuthentication object for authentication.
Should I be using this credentials or should I need a separate registered one?
Thanks again for all your help.
0 -
Can you confirm if you are using https://test2messaging.easylink.com/soap/sync endpoint and using https://myportal.opentext.com credentials?
0 -
Currently you are using test2 endpoint with production credentials so that is the reason for getting "2209 User authentication not accepted" status.
You need to talk to a sales engineer for creating the test account. A sales engineer will provision the account in test2.
0 -
Hi Parvathi,
You mentioned above that we are using test2 endpoint with production credentials, so can we use https://messaging.easylink.com/soap/sync with https://myportal.opentext.com credentials?
We are not getting correct source\contact whom we can ask someone to create a test2 user account for us.
Any help with this will be greatly appreciated. We are stuck at this point. Please advise!
Thanks!
0 -
Hi Angief,
Can you provide your email id, I'll surely help you in getting your test2 account created so that first you can perform tests over there.
Thanks
Parvathi
0 -
Hi,
Here is the account information which we currently use for opentext
CAN 857268
Name Angie Fan (admin)
Email qinlei.fan@ricoh-usa.com
Fax 18442331471
Thanks!
0 -
Thank you for providing the details, we have escalated the issue with respective people and they will get back to you ASAP.
1 -
Thanks. We're able to use the new account created for Test2.
But we also need to be able to send fax that should go to https://myportal.opentext.com. Tried using the credentials we had to send fax
through https://messaging.easylink.com/soap/sync but we're getting the Connection Refused error.
Can you advise how do we achieve this?
0 -
Can you please let us know if you access https://messaging.easylink.com/soap/sync url from browser what response you are getting?
Can you also let us know the request and response when you hit the endpoint from client code?
0 -
Thanks for your reply.
From the browser, I'm getting the response below:
EasyLink Messaging API
You have reached this page as a result of visiting the EasyLink Messaging API submission URL with your web browser. The display of this page indicates that your network configuration allows you to reach the API and that the service is running.
SOAP requests must be submitted using the HTTP POST method.
When I tried the code now, I'm getting the response:
sError:::: 2209
User authentication not accepted
For the request, I'm just using the credentials for logging in to https://myportal.opentext.com.
Btw, for the DocumentType and ContentPartType below, is the values highlighted below correct or should I be setting it to something else?
I have attached the sample code here for reference.
0 -
If you are using qinlei.fan@ricoh-usa.com to login to https://messaging.easylink.com/soap/sync where its a Fax2Mail account so you need to pass aliastype for the uid.
You can set alias type like below in the client code and try the request:
uid.setAliasType("m2f");
In test environment you are using Notification user where user Id is T2/F2M/AFAN so for Notification user account you can directly pass this value as RequesterID and no need of Alias but for F2M account you should pass alias type based on the alias you are passing. In above case you are passing email id so you can set the aliastype to 'm2f'.
0 -
Thanks for the reply and for all your help.
By the way, is there a way we can set a company name in the coversheet? I check the FaxCoversheetOptionType and it doesn't show anything for the company name.
Also, what if we want to customize the coversheet? Should we create it inside the portal and then set/call its name inside the code?
I tried to use FaxCoversheetOptionType .setCoversheetName("sys_default"); however, it gives me an error and won't allow me to proceed.
0 -
Hi Angief,
Please refer to the below links which will help you to get the required information about the coversheets.
Thanks
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 151 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories