Issues encountered with JobSubmitService

Options

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

Answers

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    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

  • angief
    edited March 26, 2021 #4
    Options

    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.

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    We are looking into the issue and get back to you at the earliest

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    #6 Answer ✓
    Options

    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");

  • angief
    edited March 29, 2021 #7
    Options

    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.

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    Can you confirm if you are using https://test2messaging.easylink.com/soap/sync endpoint and using  https://myportal.opentext.com credentials?

  • yes that's correct.

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    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.

  • Thanks for that info.

    I have sent an email to: f2msupport@opentext.com for assistance and I'm waiting for their reply.

    Please let me know if there's anybody else that I should make this same request to.


    Thanks and regards

  • 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!

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    edited April 1, 2021 #13
    Options

    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

  • 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!

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    Thank you for providing the details, we have escalated the issue with respective people and they will get back to you ASAP.

  • 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?

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    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?

  • 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.


  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    edited April 15, 2021 #19
    Options

    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'.

  • 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.

  • mparvathi_2021
    mparvathi_2021 Moderator, E mod
    Options

    Hi Angief,

    Please refer to the below links which will help you to get the required information about the coversheets.

    Thanks