1SOAP::WSDL::Factory::SeUrsiearliCzoenrt(r3i)buted Perl DSoOcAuPm:e:nWtSaDtLi:o:nFactory::Serializer(3)
2
3
4

NAME

6       SOAP::WSDL::Factory::Serializer - Factory for retrieving serializer
7       objects
8

SYNOPSIS

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

DESCRIPTION

23       SOAP::WSDL::Factory::Serializer serves as factory for retrieving
24       serializer objects for SOAP::WSDL.
25
26       The actual work is done by specific serializer classes.
27
28       SOAP::WSDL::Serializer 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::Serializer->register('1.1', 'MyWickedSerializer');
35
36       Globally registers a class for use as serializer class.
37
38   get_serializer
39       Returns an object of the serializer class for this endpoint.
40

WRITING YOUR OWN SERIALIZER CLASS

42   Registering a deserializer
43       Serializer classes may register with SOAP::WSDL::Factory::Serializer.
44
45       Serializer objects may also be passed directly to SOAP::WSDL::Client by
46       using the set_serializer method. Note that serializers objects set via
47       SOAP::WSDL::Client's set_serializer method are discarded when the SOAP
48       version is changed via set_soap_version.
49
50       Registering a serializer class with SOAP::WSDL::Factory::Serializer is
51       done by executing the following code where $version is the SOAP version
52       the class should be used for, and $class is the class name.
53
54        SOAP::WSDL::Factory::Serializer->register( $version, $class);
55
56       To auto-register your transport class on loading, execute register() in
57       your tranport class (see "SYNOPSIS" above).
58
59   Serializer package layout
60       Serializer modules must be named equal to the serializer class they
61       contain.  There can only be one serializer class per serializer module.
62
63   Methods to implement
64       Serializer classes must implement the following methods:
65
66       •   new
67
68           Constructor.
69
70       •   serialize
71
72           Serializes data to XML. The following named parameters are passed
73           to the serialize method in a anonymous hash ref:
74
75            {
76              method => $operation_name,
77              header => $header_data,
78              body => $body_data,
79            }
80
82       Copyright 2004-2007 Martin Kutter. All rights reserved.
83
84       This file is part of SOAP-WSDL. You may distribute/modify it under the
85       same terms as perl itself.
86

AUTHOR

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

REPOSITORY INFORMATION

91        $Rev: 851 $
92        $LastChangedBy: kutterma $
93        $Id: Serializer.pm 851 2009-05-15 22:45:18Z kutterma $
94        $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Factory/Serializer.pm $
95
96
97
98perl v5.36.0                      2022-07-22SOAP::WSDL::Factory::Serializer(3)
Impressum