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
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;
That worked – thanks so much. Sorry for the double posting.