blib/lib/XML/Compile/Licensed.pm untested

filter: Statementstmt 0.0% 0 / 24 Conditioncond 0.0% 0 / 2 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
soapServer
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Copyrights 2016 by [Mark Overmeer].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 use warnings;
6 use strict;
7  
8 package XML::Compile::Licensed;
9 use vars '$VERSION';
10 $VERSION = '0.01';
11  
12  
13 use File::Spec ();
14 use File::Basename qw/dirname/;
15  
16  
17 our %soap_servers =
18 ( BEA => # Oracle's BEA
19 { xsddir => 'bea'
20 , xsds => [ qw(bea_wli_sb_context.xsd bea_wli_sb_context-fix.xsd) ]
21 }
22 , SharePoint => # MicroSoft's SharePoint
23 { xsddir => 'sharepoint'
24 , xsds => [ qw(sharepoint-soap.xsd sharepoint-serial.xsd) ]
25 }
26 );
27  
28 sub soapServer($)
29 { my ($class, $type) = @_;
30 my $config = $soap_servers{$type} or return ();
31  
32 my $up = dirname __FILE__;
33 my $xsddir = File::Spec->catdir($up, 'SOAP', 'xsd', $config->{xsddir});
34 ($xsddir, $config);
35 }
36  
37 1;