[Xml-compile] Win32, disable Daemon log to windows eventlog

Mark Overmeer mark at overmeer.net
Mon Mar 15 08:45:31 GMT 2010


* Robin V. (robinsp at gmail.com) [100315 00:02]:
> Commenting line 15 of XML::Compile::SOAP::Daemon ( dispatcher SYSLOG
> => 'default'; ) is enough to get the messages back to the standard
> output.

Ah, yes... that's it.
You can also add
   dispatcher PERL => 'default';
to close syslog again, and reopen standard Perl use of warn and die. Or
   dispatcher PERL => 'usual';
which will give you output to both syslog and perl. The name 'usual'
is just randomly chosen to be different from 'default'.
   
> Use of uninitialized value $version in hash element at
> C:/strawberry/perl/site/lib/XML/Compile/SOAP/Daemon.pm line 262.
> when I use $daemon->printIndex; Could it be that there's a soap
> version missing in callback registration? $daemon->soapVersions only
> reports SOAP11. That seems logical as that's the only port in this
> wsdl.

Please change:
 sub printIndex(;$)
 {  my $self = shift;
    my $fh   = shift || \*STDOUT;

    foreach my $version ($self->soapVersions)
 -  {   my @handlers = $self->handlers;
 +  {   my @handlers = $self->handlers($version);
        @handlers or next;

        local $" = "\n   ";
        $fh->print("$version:\n   @handlers\n");
    }
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list