[Xml-compile] Logging and WSDL url

Kieron Johnson ao7one at gmail.com
Tue Nov 19 12:54:16 GMT 2013


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=92d like to log all attempts to access the service whether
successful or not. So I=92ve added log_file and log_level but whilst it
provides decent logging on start up it doesn=92t appear to log any client
connectivity at all. How might I achieve this?

use Log::Report   syntax =3D> 'SHORT';



# Create the daemon set-up

#

my $daemon =3D 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        =3D> =91MyService=92

  , host        =3D> $serverhost

  , port        =3D> $serverport

  , log_file    =3D> 'Log::Log4Perl'

  , log_level   =3D>  4



    # Net::Server::PreFork parameters

  , min_servers =3D> 1

  , max_servers =3D> 1

  , min_spare_servers =3D> 0

  , max_spare_servers =3D> 0

  );


2. My devs are complaining that the URL for the WSDL doesn=92t display in a
browser but instead forces them to download it. Entering the URL into a
browser it automatically adds =91/=92. eg: http://myserver.net:38385?WSDLbe=
comes
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20131119/fe=
7e76db/attachment.htm


More information about the Xml-compile mailing list