Martin Kutter > SOAP-WSDL-2.00.99_3 > SOAP::WSDL::Generator::PrefixResolver

Download:
SOAP-WSDL-2.00.99_3.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  27
Open  15
View/Report Bugs
Module Version: v2.0.99_3   Source  

NAME ^

SOAP::WSDL::Generator::PrefixResolver - prefixes for different classes

SYNOPSIS ^

If you want to create your custom prefix resolver:

 package MyPrefixResolver;
 use strict; use warnings;
 use base qw(SOAP::WSDL::Generator::PrefixResolver);

 sub resolve_prefix {
     my ($self, $type, $namespace, $node) = @_;
     # return something special
     return $self->SUPER::resolve_prefix($type, $namespace, $node);
 }

When generating code:

 use MyPrefixResolver;
 use SOAP::WSDL::Generator::XSD;
 my $generator = SOAP::WSDL::Generator::Template::XSD->new({
    prefix_resolver_class => 'MyPrefixResolver',
 });

DESCRIPTION ^

Prefix resolver class for SOAP::WSDL's code generator. You may subclass it to apply some custom prefix resolving logic.

Subclasses must implement the following methods:

BUGS AND LIMITATIONS ^

You cannot suffix your types by some rule yet...

LICENSE AND COPYRIGHT ^

Copyright 2008 Martin Kutter.

This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself

AUTHOR ^

Martin Kutter <martin.kutter fen-net.de>

REPOSITORY INFORMATION ^

 $Rev: 583 $
 $LastChangedBy: kutterma $
 $Id: $
 $HeadURL: $
syntax highlighting: