Hi
New to Perl and XML and in the last couple of weeks using XML::Compile I
have myself a functional web service with WSDL and validated via a XSD. I
do have a couple of questions though if people would be able to assist?
1. Logging - I’d like to log all attempts to access the service whether
successful or not. So I’ve added log_file and log_level but whilst it
provides decent logging on start up it doesn’t appear to log any client
connectivity at all. How might I achieve this?
use Log::Report syntax => 'SHORT';
# Create the daemon set-up
#
my $daemon = XML::Compile::SOAP::Daemon::NetServer->new();
$daemon->run
(
# any Net::Server option. Difference SOAP daemon extensions add extra
# configuration options. It also depends on the Net::Server
# implementation you base the SOAP daemon on. See new(base_on)
name => ‘MyService’
, host => $serverhost
, port => $serverport
, log_file => 'Log::Log4Perl'
, log_level => 4
# Net::Server::PreFork parameters
, min_servers => 1
, max_servers => 1
, min_spare_servers => 0
, max_spare_servers => 0
);
2. My devs are complaining that the URL for the WSDL doesn’t display in a
browser but instead forces them to download it. Entering the URL into a
browser it automatically adds ‘/’. eg: http://myserver.net:38385?WSDLbecomes
http://myserver.net:38385/?WSDL This is apparently abnormal behaviour. Is
there a way within either the xsd, WSDL or the server.pl to change that
characteristic? My code is basically the standard example server.pl from
the CPAN tar ball examples with my server side functions.
Any help appreciated.
Many thanks
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile