Results 1 to 5 of 5

Thread: Perl soap modules

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    74
    Rep Power
    9

    Default Perl soap modules

    I'm using your Soap.pm, and other soap modules in perl programs on FC4. The programs work fine except one situation. The error I got is:

    syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/XML/Parser.pm line 187.

    Do you have installable soap package? Or will you create one?

    If not, what's the good way to install/deploy your soap modules, in general?

  2. #2
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    10

    Default

    What is the "one situation" it doesn't work in? Give us repro steps and we can help you. (what script? what arguments?)

    ...an error on that line just means that the XML parser couldn't parse the passed-in text. I've found that the easiest way to debug this type of problem is to just hack your Parser.pm file, add print $arg at line 187 just before the call to expat->parse()... so your code in Parser.pm looks like:

    Code:
      eval {
        print "$arg\n";
        $result = $expat->parse($arg);
      };
    ...that will at least print out the text that is being parsed: usually it is an apache HTML error message of some kind from the web request.

    Our soap libs really need a debug flag to turn this kind of logging (wrap the calls to parse()) on with a flag, I just haven't gotten around to it yet. Unfortunately the perl libs are pretty low-priority as they are only generally used for dev testing and not for anything 'real' right now.


    In terms of the installable soap package: no we don't have one right now. It would be nice to have one -- I've just never created one so don't immediately know what's involved. I'll look into it when I get a chance.

  3. #3
    Join Date
    Sep 2005
    Posts
    78
    Rep Power
    10

    Default

    Not sure if this is the reason for the problem you're seeing, but I recently hit the same error when sending admin SOAP commands. Installing Crypt::SSLeay fixed the problem.

    Boris

  4. #4
    Join Date
    Dec 2005
    Posts
    74
    Rep Power
    9

    Default Confusing Parser.pm Error

    My problem was caused by bad string in soap message. It was fixed.

    I use Net::SSLeay for Perl-LDAP.

  5. #5
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    5

    Default parser.pm line 87

    I have the same problem. I used a SOAP client, but i still have this failure.
    I tried Net::SSLeay it didn'_t work.
    Is there a problem with Expat.pm (version 2.34)???

    Thanks

Similar Threads

  1. XSD/WSDL Files for the SOAP Server?
    By photoadrian in forum Developers
    Replies: 5
    Last Post: 12-23-2012, 01:32 AM
  2. Perl SOAP examples for Zimbra
    By orlanth in forum Developers
    Replies: 0
    Last Post: 08-30-2006, 02:00 PM
  3. list of CPAN modules zimbra uses for building perl
    By ravinder in forum Developers
    Replies: 3
    Last Post: 06-28-2006, 10:39 AM
  4. Replies: 12
    Last Post: 04-06-2006, 10:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •