EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Problems when calling Webservice from EGL generated Cobol on IBM i

  • 1.  Problems when calling Webservice from EGL generated Cobol on IBM i

    Posted Thu April 02, 2015 05:50 AM

    Environment :
    EGL version 8.0.0.0
    iSeries 6.1
    Creating EGL to iSeries native - COBOL

     

    Hello,

     

    We would like to create a client with EGL that will generate in COBOL on iSeries and must consume external Web Services from a WSDL.

    On RBD , we managed to create a customer and call an external Web Services, using the debug tool (debug as EGL Program) .

    For this we follow the documentation and run a tutorial for a Web project we adapt.

     

    But we have problems when we want to run it on iSeries COBOL client :

    We have tried to follow this process:

    http://www-01.ibm.com/support/knowledgecenter/SSMQ79_9.1.1/com.ibm.egl.gg.doc/topics/gegl_core_service_accessingserviceiseries.html

    And when generating Cobol by changing the settings to build the project on system = " ISERIESC " We have sources cobol and generated files (CopyiSeriesJNILibs.xml and SystemDefault.properties)

    But we have several questions on this topic :
    - Which directory should I copy the Jar and the Wsdl ?
    - We do not find the properties file in the path /QIBM/UserData/Java400. Should we just put it generate ?
    - More generally, do you have a tutorial or a documentation where a client Cobol on iSeries calls a external Web Services ?
    Without these files when running we have the error MCH3601

     

    Thanks,

    Regards Franck

    Franck Monceau Assurances


  • 2.  Re: Problems when calling Webservice from EGL generated Cobol on IBM i

    Posted Mon April 06, 2015 06:06 PM

    Franck,

    I don't have a better tutorial, but looked at some files/info we had on our systems.  

    To answer your questions:

    a.) The directory to put the files in is arbitrary.  In other words, you decide and create this directory.  Just make sure it is something you have permission to use.  (such as /home/userid/    where userid is your userid.

    b.) Then you can use the sample for SystemDefault.properties and copy it into the /QIBM/UserData/Java400 folder.   Then update the CLASSPATH in it to reflect the name of the folder you created in step a.   This is what is meant by the "home" directory.

    c.) Of course, you should have copied all the files listed in the generated xml file over to your directory.

     

    markevans


  • 3.  Re: Problems when calling Webservice from EGL generated Cobol on IBM i

    Posted Tue April 07, 2015 09:37 AM

    Markevans,

     

    Thank you for these additional informations , we will try.
     

    Franck,

    Franck Monceau Assurances