SOAP::...Parser(3pm)

πŸ’– SOAP::WSDL::Expat::MessageStreamParser β€” it's giving parser energy ✨

okay bestie, this is a page from the User Contributed Perl Documentation set πŸ“š and it's all about SOAP::WSDL::Expat::MessageStreamParser β€” the thing that takes SOAP messages and turns them into your very own custom object trees πŸŒ³πŸ’…


🌸 NAME 🌸

SOAP::WSDL::Expat::MessageStreamParser β€” literally converts SOAP messages into custom object trees. no cap. 🌈


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, copy-paste ready, don't change a single character bestie:

 my $lwp = LWP::UserAgent->new();

 my $parser = SOAP::WSDL::Expat::MessageParser->new({
    class_resolver => 'My::Resolver'
 });
 my $chunk_parser = $parser->init();
 # process response while it comes in, trying to read 32k chunks.
 $lwp->request( $request, sub { $chunk_parser->parse_more($_[0]) } , 32468 );
 $chunk_parser->parse_done();

 my $obj = $parser->get_data();

see that? stream it in chunks, don't wait for the whole thing, then grab your data at the end. main character energy fr fr. πŸ‘‘


✨ DESCRIPTION ✨

so basically it's an ExpatNB based parser, and its whole personality is parsing huge documents 😭 like enormous ones. it doesn't need the full message to exist before it starts doing its thing.

if you want the full tea, go read SOAP::WSDL::Manual::Parser for the details. iykyk. 🫢


πŸ’€ Bugs and Limitations πŸ’€

not gonna lie to you bestie β€” the bugs and limitations live over in SOAP::WSDL::Expat::MessageParser. go check that one for the full breakdown. πŸ™ˆ


πŸŽ€ AUTHOR πŸŽ€

Martin Kutter β€” <martin.kutter fen-net.de> πŸ’œ


Copyright 2007 Martin Kutter.

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

fr fr, same terms as perl itself β€” that's the whole license situation, no extra drama πŸ’…

🧚 REPOSITORY INFORMATION 🧚

all the svn lore, verbatim, because we do not paraphrase the repo bestie:

 $Rev: 851 $
 $LastChangedBy: kutterma $
 $Id: MessageStreamParser.pm 851 2009-05-15 22:45:18Z kutterma $
 $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Expat/MessageStreamParser.pm $

aaand that's the whole page 🌸 this one's from User Contributed Perl Documentation, documented for SOAP::...Parser(3pm), shipped with perl v5.36.0 and dated 2022-10-14. slay, go parse something gigantic πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from