SOAP::...Parser(3pm)

πŸ’– SOAP::...Parser(3pm) πŸ’–

okay bestie, buckle up β€” this is SOAP::WSDL::Expat::MessageParser from the User Contributed Perl Documentation, and she is fast. 🏎️✨


🌸 NAME 🌸

SOAP::WSDL::Expat::MessageParser β€” convert SOAP messages into custom object trees, no cap 🫢


✨ SYNOPSIS ✨

my $parser = SOAP::WSDL::Expat::MessageParser->new({
   class_resolver => 'My::Resolver'
});
$parser->parse( $xml );
my $obj = $parser->get_data();

like that's it, that's the whole vibe. three little lines and you got yourself an object tree πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

It's a real fast expat-based SOAP message parser. That's the whole personality and honestly? iconic. πŸ”₯

Wanna know more? Go read SOAP::WSDL::Manual::Parser for the details, bestie, it's all laid out there. πŸ“–

πŸ¦‹ Skipping unwanted items πŸ¦‹

Sometimes SOAP messages be transporting unnecessary information. Like, why are you here?? 😭 Not everything deserves your attention.

So if you wanna skip XML nodes β€” and yes, including all child nodes, every last one, they're going down together β€” here's the move: just edit the type map for the message, set the type map entry to '__SKIP__', and comment out all the child elements you want to skip. Boom. Gone. Blocked. πŸš«πŸ’–

πŸ’€ Bugs and Limitations πŸ’€

listen, she's fast but she's not perfect, and we're being honest about it:

  • Ignores all namespaces 😬
  • Does not handle mixed content πŸ™ˆ
  • The SOAP header is ignored πŸ«₯

πŸ‘‘ AUTHOR πŸ‘‘

Replace the whitespace by @ for E-Mail Address.

Martin Kutter E<lt>martin.kutter fen-net.deE<gt>


Copyright 2004-2007 Martin Kutter.

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


πŸ’Ύ Repository information πŸ’Ύ

$Id: MessageParser.pm 851 2009-05-15 22:45:18Z kutterma $

$LastChangedDate: 2009-05-16 00:45:18 +0200 (Sa, 16. Mai 2009) $
$LastChangedRevision: 851 $
$LastChangedBy: kutterma $

$HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Expat/MessageParser.pm $

and that's the whole page bestie πŸ’œ she was written up on 2022-10-14 and shipped with perl v5.36.0 β€” shoutout to SOAP::...Parser(3pm), the manual page herself. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from