webMethods

 View Only
Expand all | Collapse all

ApplinX REST services format is NOT JSON

webMethods Community Member

webMethods Community MemberMon June 19, 2023 05:40 PM

  • 1.  ApplinX REST services format is NOT JSON

    Posted Tue June 13, 2023 03:19 PM

    Product/components used and version/fix level:

    ApplinX 10.7.0.0001.1382

    Detailed explanation of the problem:

    The REST web service implemented via SOA ApplinX application responds with the payload in XML format.
    Do not see how to respond with JSON format. Is it ever possible ?

    Error messages / full error message screenshot / log file:

    N/A

    Question related to a free trial, or to a production (customer) instance?

    N/A


    #Mainframe-Integration
    #webMethods
    #ApplinX


  • 2.  RE: ApplinX REST services format is NOT JSON

    Posted Tue June 13, 2023 06:31 PM

    have you set a Content-Type:application/json HTTP header for your request?


    #Mainframe-Integration
    #ApplinX
    #webMethods


  • 3.  RE: ApplinX REST services format is NOT JSON



  • 4.  RE: ApplinX REST services format is NOT JSON

    Posted Wed June 14, 2023 06:51 PM

    do you have access to the server.log from the wmIS that is hosting your REST services? There should be some more information about the error that the service returns as HTTP500 to the caller.


    #Mainframe-Integration
    #ApplinX
    #webMethods


  • 5.  RE: ApplinX REST services format is NOT JSON

    Posted Thu June 15, 2023 02:30 AM

    Hi Leonard,

    I think you’re using version 10.7 which has the previous WSS REST implementation, which is XML based.
    Updating to the latest version would let you use the new implementation with JSON format…


    #webMethods
    #Mainframe-Integration
    #ApplinX


  • 6.  RE: ApplinX REST services format is NOT JSON

    Posted Sun June 18, 2023 07:19 PM

    Hi Gadi,

    Migrated the working app from 10.7 to 10.11 but still received the same error after adding Content-Type as application/json.

    Assume that I might have to open SR


    #ApplinX
    #webMethods
    #Mainframe-Integration


  • 7.  RE: ApplinX REST services format is NOT JSON

    Posted Mon June 19, 2023 01:48 AM

    I think you probably need to re-generate the REST service using the new implementation.
    Please review the relevant DOC section.


    #webMethods
    #ApplinX
    #Mainframe-Integration


  • 8.  RE: ApplinX REST services format is NOT JSON



  • 9.  RE: ApplinX REST services format is NOT JSON

    Posted Mon June 19, 2023 08:16 AM

    What I’m talking about is a completely new REST implementation, you’re still trying to modify the old one - this will NOT work.
    Please review the DOC section I sent earlier and use the NEW implementation of REST.


    #Mainframe-Integration
    #ApplinX
    #webMethods


  • 10.  RE: ApplinX REST services format is NOT JSON

    Posted Mon June 19, 2023 05:40 PM


  • 11.  RE: ApplinX REST services format is NOT JSON

    Posted Mon August 14, 2023 06:29 PM

    I am still very confused by this documentation as it seems very incomplete.

    How to use the rest-API-config.json file to generate new REST implementation ?
    And attempting to get token with connect session receive HTTP Status 415 – Unsupported Media Type

    Cannot recall anything else as much confusing …


    #webMethods
    #ApplinX
    #Mainframe-Integration