При установке пакета RSAT и активации его веб-служб в Ubuntu я получил сообщение об ошибке SOAP.
Testing Web services at SERVER=RSAT_WS=http://192.168.119.51/rsat/ using
the stub
(cd /home/mithil/cis_regulatory/rsat/public_html/web_services/clients
/perl_clients/soap-wsdl/; make stub_test)
make[1]: Entering directory '/home/mithil/cis_regulatory/rsat/public_html
/web_services/clients/perl_clients/soap-wsdl'
perl ./convert_matrix_soap_wsdl_2.pl
A fault (SOAP-ENV:Server) occured: Error deserializing message:
not well-formed (invalid token) at line 1, column 1, byte 1 at /usr/local /share/perl/5.26.1/SOAP/WSDL/Expat/Base.pm line 79.
at line 1 at /usr/local/share/perl/5.26.1/SOAP/WSDL/Expat/Base.pm line 82.
Сообщение было:
#!/usr/bin/env perl
# RSATWS.cgi - SOAP server for rsa-tools.
=pod
=head1 DESCRIPTION
Server for RSAT web services.
=cut
use strict;
use SOAP::Transport::HTTP;
use lib '../../perl-scripts/lib/RSAT';
my $server = SOAP::Transport::HTTP::CGI
- > dispatch_to('RSATWS')
-> handle;
Что такое ошибка и какя могу решить это?
Мой файл Base.pm:
sub parse {
eval {
$_[0]->_initialize( XML::Parser::Expat->new( Namespaces => 1 )
)->parse( $_[1] );
$_[0]->{ parser }->release();
};
$_[0]->{ parser }->xpcroak( $@ ) if $@;
delete $_[0]->{ parser };
return $_[0]->{ data };
}