Loading ...
Sorry, an error occurred while loading the content.

5815wsdl basic authentication

Expand Messages
  • brgomeistr
    Jan 30, 2007
    • 0 Attachment
      #########################
      1) My web server requires basic authentication, so the following does
      not work:

      #! /usr/bin/perl -w
      use SOAP::Lite +trace => qw(debug);

      my $service = SOAP::Lite
      -> service("http://myserver.some.edu/soap/AstService.wsdl");

      user@host]$./test.pl
      Service description 'http://myserver.some.edu/soap/AstService.wsdl'
      can't be loaded: 401 Access Denied

      #########################
      2) I have tried adding the following, but I still get access denied:

      sub SOAP::Transport::HTTP::Client::get_basic_credentials {
      return 'admin' => 'password';
      }

      How can I authenticate????

      With a webbrowser I can grab the wsdl using:
      http://admin:password@.../soap/AstService.wsdl

      Any help is greatly appreciated as I have been unable to find any
      documentation on this simple task. Thanks.
    • Show all 2 messages in this topic