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

1840Re: [soaplite] Does SOAP::Lite support DBI::mysql?

Expand Messages
  • Shihe Wang
    Sep 16, 2002
    • 0 Attachment
      Thanks a lot.
      I add the line into my code and run it. I get error
      message:
      %perl test1.pl
      faultcode- SOAP-ENV:Server

      faultstring- install_driver(mysql) failed: Can't
      locate DBD/mysql.pm in @INC (@INC contains:
      /usr/local/bin/mysql
      /usr/local/lib/perl5/5.8.0/sun4-solaris
      /usr/local/lib/perl
      5/5.8.0
      /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
      /usr/local/lib/perl5/s
      ite_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
      (eval 93) line 3.
      Perhaps the DBD::mysql perl module hasn't been fully
      installed,
      or perhaps the capitalisation of 'mysql' isn't right.
      Available drivers: ExampleP, Proxy.
      at
      /usr/local/etc/httpd/users/mylogin/public_html/cgi-bin/mysoap.cgi
      line 18

      detail- Use of uninitialized value in concatenation
      (.) or string at test1.pl line 27.

      %

      It is because the module, DBI::mysql, is not installed
      in the default dir.

      shihewang

      --- Duncan Cameron <dcameron@...> wrote:
      > On 2002-09-15 Duncan Cameron wrote:
      > >On 2002-09-15 shihewang wrote:
      > >>Hello,
      > >>This is second time post the question- Does
      > SOAP::Lie support
      > >>DBI::mysql? I really care it. If anybody has the
      > answer, please let
      > >>me know.
      > >Can you run a SOAP::Lite daemon instead of a CGI?
      > That will allow
      > >you to run it under debug and may help to see
      > what's going on.
      > >
      > I should have added, given that it's not doing what
      > you expect,
      > your code should be a bit more defensive, e.g.:
      >
      > use SOAP::Lite;
      > my $soap=SOAP::Lite
      > ->uri('urn:Mysoap')
      > ->proxy(
      >
      'http://www.dept.univ.edu/~mylogin/cgi-bin/mysoap.cgi')
      > ;
      > my $som = $soap->search_db();
      > die $soap->transport->status unless defined $som;
      >
      > if (defined $som->result) {
      > print "result: ", $som->result, "\n";
      > } else {
      > my $faultcode = $som->faultcode;
      > my $faultstring = $som->faultstring;
      > my $detail = $som->faultdetail;
      > # do something with $faultcode
      > }
      >
      > Regards,
      > Duncan Cameron
      >
      >
      >
      >
      >
      >


      __________________________________________________
      Do you Yahoo!?
      Yahoo! News - Today's headlines
      http://news.yahoo.com
    • Show all 7 messages in this topic