1SOAP::WSDL::Factory::GeUnseerratCoorn(t3r)ibuted Perl DoScOuAmPe:n:tWaStDiLo:n:Factory::Generator(3)
2
3
4

NAME

6       SOAP::WSDL::Factory:Generator - Factory for retrieving generator
7       objects
8

SYNOPSIS

10        # from SOAP::WSDL::Client:
11        $generator = SOAP::WSDL::Factory::Generator->get_generator({
12            soap_version => $soap_version,
13        });
14
15        # in generator class:
16        package MyWickedGenerator;
17        use SOAP::WSDL::Factory::Generator;
18
19        # register as generator for SOAP1.2 messages
20        SOAP::WSDL::Factory::Generator->register( '1.2' , __PACKAGE__ );
21

DESCRIPTION

23       SOAP::WSDL::Factory::Generator serves as factory for retrieving
24       generator objects for SOAP::WSDL.
25
26       The actual work is done by specific generator classes.
27
28       SOAP::WSDL::Generator tries to load one of the following classes:
29
30       •   the class registered for the scheme via register()
31

METHODS

33   register
34        SOAP::WSDL::Generator->register('Lite', 'MyWickedGenerator');
35
36       Globally registers a class for use as generator class.
37
38   get_generator
39       Returns an object of the generator class for this endpoint.
40

WRITING YOUR OWN GENERATOR CLASS

42   Registering a generator
43       Generator classes may register with SOAP::WSDL::Factory::Generator.
44
45       Registering a generator class with SOAP::WSDL::Factory::Generator is
46       done by executing the following code where $version is the SOAP version
47       the class should be used for, and $class is the class name.
48
49        SOAP::WSDL::Factory::Generator->register( $version, $class);
50
51       To auto-register your transport class on loading, execute register() in
52       your generator class (see SYNOPSIS above).
53
54   Generator package layout
55       Generator modules must be named equal to the generator class they
56       contain.  There can only be one generator class per generator module.
57
58   Methods to implement
59       Generator classes must implement the following methods:
60
61       •   new
62
63           Constructor.
64
65       •   generate
66
67           Generate SOAP interface
68
69       Generators may implements one or more of the following configuration
70       methods. All of them are tried via can() by wsdl2perl.
71
72       •   set_wsdl
73
74           Set the raw WSDL XML. Implement if you have your own WSDL parser.
75
76       •   set_definitions
77
78           Sets the (parsed) SOAP::WSDL::Definitions object.
79
80       •   set_type_prefix
81
82           Sets the prefix for XML Schema type classes
83
84       •   set_element_prefix
85
86           Sets the prefix for XML Schema element classes
87
88       •   set_typemap_prefix
89
90           Sets the prefix for typemap classes (class resolvers).
91
92       •   set_interface_prefix
93
94           Sets the prefix for interface classes
95
96       •   set_typemap
97
98           Set user-defined typemap snippet
99
101       Copyright 2007 Martin Kutter. All rights reserved.
102
103       This file is part of SOAP-WSDL. You may distribute/modify it under the
104       same terms as perl itself
105

AUTHOR

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

REPOSITORY INFORMATION

110        $Rev: 176 $
111        $LastChangedBy: kutterma $
112        $Id: Serializer.pm 176 2007-08-31 15:28:29Z kutterma $
113        $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Factory/Serializer.pm $
114
115
116
117perl v5.36.0                      2023-01-20 SOAP::WSDL::Factory::Generator(3)
Impressum