SOAP::WSDL::SAX::MessageHandler - Convert SOAP messages to custom object trees
# this is the direct variant, recommended for performance use SOAP::WSDL::SAX::MessageHandler; use XML::LibXML; my $filter = SOAP::WSDL::SAX::MessageHandler->new( { class_resolver => FakeResolver->new() ), "Object creation"); my $parser = XML::LibXML->new(); $parser->set_handler( $filter ); $parser->parse_string( $soap_message ); my $object_tree = $filter->get_data(); # This is the XML::ParserFactory variant - for those who want other # parsers than XML::Simple.... use SOAP::WSDL::SAX::MessageHandler; use XML::SAX::ParserFactory; my $filter = SOAP::WSDL::SAX::MessageHandler->new( { class_resolver => FakeResolver->new(), base => 'XML::SAX::Base', ), "Object creation"); my $parser = XML::SAX::ParserFactor->parser( Handler => $handler ); $parser->parse_string( $soap_message ); my $object_tree = $filter->get_data();
SAX handler for parsing SOAP messages.
See SOAP::WSDL::Parser for details.
Ignores all namespaces
Does not handle mixed content
The SOAP header is ignored
Replace the whitespace by @ for E-Mail Address.
Martin Kutter E<lt>martin.kutter fen-net.deE<gt>
This module may be used under the same terms as perl itself.
$ID: $ $LastChangedDate: $ $LastChangedRevision: $ $LastChangedBy: $ $HeadURL: $
To install SOAP::WSDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SOAP::WSDL
CPAN shell
perl -MCPAN -e shell install SOAP::WSDL
For more information on module installation, please visit the detailed CPAN module installation guide.