IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Access denied for user Administrator on port 5555 calling REST-Service over Firefox

  • 1.  Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Tue November 10, 2015 06:56 AM

    Hello,
    I just tested the Walkthrough exercise of REST-Services “bookinformation” (AcmeSupport.package) with the standard-installation of wm IS of the EIP (Education Integration Package). At the time I call the get-method “http://local:5555/rest/acme/work/bookInformation/7” from Firefox REST-Client I get the HTTP-code “405 method not allowed” and the server log shows the entry “Access denied for user Administrator on port 5555 ->'rest/acme/work/bookInformation/ from …”

    For authentification of the HTTP-request I used administrator/manage.

    As I run a student course with implementation of REST-services it would be great if someone has a quick idea how to solve the problem ,because it blocks every further activities of my students.

    Regards,
    Armin Wagenknecht


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Tue November 10, 2015 09:11 AM

    I solved the problem on myself. We had a fault configuration in our server settings (initiated by ourselves) :frowning:


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Fri February 19, 2016 12:15 AM

    Hello Armin,

    Can you please explain how you resolved the issue? i mean what changes did u do in the server setup? i am also facing the same issue.
    Please let me know!


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Fri February 19, 2016 07:41 AM

    Hi,
    as I rember the problem was that we did not correctly distinguish between lower an upper cases in the URL of the REST-Call. You have to exactly use the lower and upper cases of the folders of your Integration Server where the Flow-Service with the REST Resource ist located.
    E.g. the conent of the file GetBookBySKU.txt of the SAG tutorial for the Firefox REST Client is the following:

    {“requestUrl”:“http://localhost:5555/rest/[b]acme/work/bookInformation[/b]/7",“requestMethod”:“GET”,“requestBody”:“”,“headers”:[“Content-Type”,"application/x-www-form-urlencoded; utf-8”,“Authorization”,“Basic QWRtaW5pc3RyYXRvcjptYW5hZ2U=”]}

    This means that your folder structure and naming must be exactly “acme.work.bookInformation”. The “_get”-FlowService must be located in the folder bookInformation.

    Our fault was that we named the folder bookinformation not bookInformation. If the URL for the REST call is different to the folder structure you do not get the HTTP code 404 “Not found” but “method not allowed” which is misleading.

    I hope that helps.

    Best regards,
    Armin


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 5.  RE: Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Fri February 19, 2016 07:45 AM

    In general, we can copy the full REST service name, truncating method names along with ':" and can invoke the REST service from browser REST client.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 6.  RE: Access denied for user Administrator on port 5555 calling REST-Service over Firefox

    Posted Mon February 22, 2016 03:32 AM

    Hello Armin / MR

    Thanks for the reply. I am using Integration server 9.8. Actually the get method is working fine but the post method is failing in my case. The folder structure in the IS is webserviceExample.RESTResource.second_rest and i have a _post method under the folder second_rest. When i hit the following url
    http://localhost:5555/rest/webserviceExample.RESTResource.second_rest/_post/
    I get the error:
    Access denied for user Administrator on port 5555 → ‘rest/webserviceExample.RESTResource.second_rest/_post/’ from 0:0:0:0:0:0:0:1.

    Any idea why it is failing for the post method?

    Thanks


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB