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.