| 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; |