IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  issue to Host openAPI with parameter in URL path

    Posted 02/07/17 09:31 AM

    Originally posted by: JulienT


    Hello,

    I am trying to host restful API with ITX launcher but I encounter some issues.

     

    The importer openAPI generate the system, map and typetree for the operation GET /employees/{employeeNumber}

    Launcher Event Command generated is "-URL http://localhost:5618/TestWebApp/resources/employees/{employeeNumber} -session * -METHOD GET -TV -HDR+ -TYPE application/json"

    So for a restful API calling the URL  http://localhost:5617/TestWebApp/resources/employees/000010  should work but that is not the case with ITX launcher.

     

    I do some correction in the generate map in order to make it work with the Launcher Event Command : "-URL http://localhost:5618/TestWebApp/resources/employees/000010 -session * -METHOD GET -TV -HDR+ -TYPE application/json"

    But it not work with a dynamic URL path parameter with the Launcher Event Command generated  "-URL http://localhost:5618/TestWebApp/resources/employees/{employeeNumber} -session * -METHOD GET -TV -HDR+ -TYPE application/json"

     

    Has anyone a solution to make it work? ( missing HTTP option for this case ?)

     

    Regards,

    Julien

     

     


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: issue to Host openAPI with parameter in URL path

    Posted 02/16/17 08:59 AM

    Originally posted by: jvanboga


    I believe your post should be to a static address/link/document name.  You can pass the employee number as content.  You might try something like this but you may need to update your type tree definition. Your map would then call the application and post the results back.

     

    -url http://localhost:5618/TestWebApp/resources/employees/employeeNumber -type text/html  -session * -method POST -LSN 0

    <?xml version="1.0" encoding="UTF-8"?><employeeNumber>eenum</employeeNumber>


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: issue to Host openAPI with parameter in URL path

    Posted 02/16/17 11:28 AM

    Originally posted by: JulienT


    The fact is if with ITX launcher we are limited to static URL, we loose the main advantage of restfull API to use path parameter.

    Your workaround is more like a SOAP webservice solution than a restful API solution.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange