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

3370Newbie with build of first soap server - HELP!

Expand Messages
  • Joseph Norris
    Feb 18, 2004

      I am really enjoying working with SOAP::Lite - but I have run into a
      when building my own Server. I have been successful in building
      clients for
      a variety of soap servers but now I wish to do my own.

      I keep getting Denied Access to method error and I am not sure just
      how to
      begin troubleshooting this problem. It appears that my little server
      the subs in my PM that I am using but then I get this error. This
      when I have a package of routines in the Soap server script in accord
      the example scripts. I have the following:

      use SOAP::Transport::HTTP;
      use lib "/usr/local/cs/lib";
      use CSSOAP;

      -> dispatch_to('/usr/local/cs/lib/CSSOAP')
      -> handle;

      The rountines in CSSOAP.pm are not being found. I get the following:

      Denied access to method (cslogin) in class (CSSOAP) at
      /usr/lib/perl5/site_perl/5.6.1/SOAP/Lite.pm line 2267.

      my client:

      use SOAP::Lite
      on_fault => sub { my($soap_response, $res) = @_;
      die ref $res ? $res->faultstring : $soap_response->transport-
      "\n"; };

      my $soap_response = SOAP::Lite
      -> readable(1)
      -> uri('http://spare.test.com/CSSOAP')
      -> proxy('http://spare.test.com/cs/admin/soap');

      my $cs_handle = $soap_response->cslogin
      ('esb.test.com', 'joseph','12345cs');
      if (!$cs_handle){
      print "error in login\n";