MQ

 View Only
  • 1.  Having issues using MQ REST API version (MQ 9.1.5)

    Posted Mon May 10, 2021 10:22 AM
    I was trying to use MQ REST API on MQ version 9.1.5. I had use no_security.xml from sample folder and using that as mqwebuser.xml. I was able to access the IBM MQ console with no problem. But when I try to use REST API to get to queue manager I run into issues. 

    C:\Program Files (x86)\IBM\WebSphere MQ\bin>strmqweb
    Starting server mqweb.
    Server mqweb started.

    C:\Program Files (x86)\IBM\WebSphere MQ\bin>dspmqweb status
    MQWB1124I: Server 'mqweb' is running.
    URLS:
    https://localhost:9443/ibmmq/rest/
    http://localhost:9080/ibmmq/rest/
    https://localhost:9443/ibmmq/console/
    http://localhost:9080/ibmmq/console/

    C:\Program Files (x86)\IBM\WebSphere MQ\bin>

    C:\Program Files\IBM\MQ\bin>curl -k http://localhost:9080/ibmmq/rest/qmgr/QM1
    {"error": [{
    "action": "Resubmit the request using a valid URI.",
    "completionCode": 0,
    "explanation": "There is no corresponding REST interface on the provided URI.",
    "message": "MQWB0116E: The URI cannot be invoked as it does not correspond to an existing REST interface.",
    "msgId": "MQWB0116E",
    "reasonCode": 0,
    "type": "rest"
    }]}
    C:\Program Files\IBM\MQ\bin>

    I got an exception saying "Does not correspond to an existing REST interface"
    Could someone guide me what I am missing. 
    Any help would be greatly appreciated. Thank you all.

    ------------------------------
    Lokesh Bonthula
    ------------------------------


  • 2.  RE: Having issues using MQ REST API version (MQ 9.1.5)

    Posted Mon May 10, 2021 10:42 AM
    Hi,

    Your URL is wrong. Try: localhost:9080/ibmmq/rest/v2/admin/qmgr/QM1

    Regards, Matt.

    Matt Leming
    STSM, IBM MQ for z/OS

    Email: lemingma@uk.ibm.com
     
     





  • 3.  RE: Having issues using MQ REST API version (MQ 9.1.5)

    Posted Mon May 10, 2021 10:35 PM
    Thank you Matt for the quick response. It worked.


    ------------------------------
    Lokesh Bonthula
    ------------------------------