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

RedHat strikes (shrikes?) again :/

Expand Messages
  • gdhgdh
    Hi :) I m developing a series of non-WSDL SOAP services with SOAP::Lite and will be using NuSOAP in PHP for the front-end (initially) .. the idea is to develop
    Message 1 of 2 , Aug 25, 2003
    • 0 Attachment
      Hi :)

      I'm developing a series of non-WSDL SOAP services with SOAP::Lite and will be
      using NuSOAP in PHP for the front-end (initially) .. the idea is to develop any
      number of front ends for, PDAs, mobile phones, pocket PCs, SMS, etc. so SOAP
      was the logical choice.

      Now, I'm not a good programmer, but if I use my code on Debian 3.0, it works, but
      on RH9 with (AFAICS) the same Perl module versions (SOAP::Lite 0.55 on both) ,
      I get an error when calling a superficial SOAP function... Can someone point me in
      the right direction?

      My 'server.pl' is:
      ###########################################
      #!/usr/bin/perl -w

      use SOAP::Transport::HTTP;

      my $daemon = SOAP::Transport::HTTP::Daemon
      -> new (LocalPort => 81, Reuse => 1)
      -> dispatch_to('/root/cham/modules',@INC);

      print "Contact to SOAP server at ", $daemon->url, "\n";
      $daemon->handle;
      ###########################################

      and /root/cham/modules contains several .pm files.... the two I'm using to test are
      at
      http://gdh.ca/TicketAuth.pm.txt
      http://gdh.ca/Mailbox.pm.txt

      This my my simple client code:

      ###############################################
      #!/usr/bin/perl -w

      use SOAP::Lite;# +trace => qw(debug);

      print "Getting a valid session...";
      $soap = SOAP::Lite
      -> uri('TicketAuth')
      -> proxy('http://10.0.0.1:81/cgi-bin/server.cgi');

      #### Get a valid session - ALL remote methods need one to function.
      $authInfo = ($soap->login('admin','password') -> result());
      $authInfo = SOAP::Header->name(authInfo => $authInfo);
      #### Now we can call the methods themselves.

      print " done\n";

      print "\nRunning remote method.\n";
      $soap = SOAP::Lite
      -> uri('Mailbox')
      -> proxy('http://10.0.0.1:81/cgi-bin/server.cgi');

      $result= $soap->genPassword($authInfo);
      print $result->result();
      ###############################################

      On Debian, this all works fine, and a newly generated Password is displayed, but
      on RH9, I get:
      eddie:~# perl client.pl
      Getting a valid session... done

      Running remote method.
      SOAP-ENV:Client, Denied access to method (genPassword) in class (Mailbox) at
      /usr/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2128.

      Can anyone shed any light on this?

      Cheers,
      Gavin.
    • gdhgdh
      Oh for goodness sakes. I hadn t actually installed the Silly::Werder module, even though I could ve swore blind that I had. ARGH! Cheers, gdh
      Message 2 of 2 , Aug 25, 2003
      • 0 Attachment
        Oh for goodness' sakes.

        I hadn't actually installed the Silly::Werder module, even though I could've swore
        blind that I had.

        ARGH!

        Cheers,
        gdh
      Your message has been successfully submitted and would be delivered to recipients shortly.