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
  • 1.  LWP and Forbidden 403 errors

    Posted Thu May 05, 2005 11:14 PM

    I am trying to invoke a webMethods webservice via an LWP call in perl. When I call this url through the browser, I get a successful response, but when I do it through LWP I get a 403 forbidden message. Can anyone give me a hint as to why this is?

    Thank you,

    Danielle


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 2.  RE: LWP and Forbidden 403 errors

    Posted Fri May 06, 2005 03:20 PM

    Did you add in user auth, something like this should work:

     
    use LWP::UserAgent; 
    
    $ua = LWP::UserAgent->new; 
    $req = HTTP::Request->new(GET => 
    '[url]http://localhost:5555/invoke/your:service');[/url] 
    $req->authorization_basic('Administrator','manage'); 
    $doc = $ua->request($req)->as_string; 
    

    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: LWP and Forbidden 403 errors

    Posted Fri May 06, 2005 04:33 PM

    That worked – thanks so much. Sorry for the double posting.

    Danielle


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport