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> π
π LICENSE AND COPYRIGHT π
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
- ubuntu noble: libsoap-wsdl-perl 3.004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsoap-wsdl-perl 3.004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsoap-wsdl-perl 3.004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms