SOAP::Deserializer(3)
π NAME π
okay so SOAP::Deserializer is the means by which the toolkit manages the conversion of XML into an object manageable by a developer. that's the whole vibe, bestie. β¨
This is SOAP::Deserializer(3), a User Contributed Perl Documentation page, and we're gonna get into it.
β¨ DESCRIPTION β¨
SOAP::Deserializer provides the means by which incoming XML is decoded into a Perl data structure. literally its whole job. π
π οΈ METHODS π οΈ
context
This gives you access to the calling context of SOAP::Deserializer. In a client-side context, this often means a reference to an instance of SOAP::Lite. In a server-side context, this means a reference to a SOAP::Server instance. π«Ά
πΈ EXAMPLES πΈ
DESERIALIZING RAW XML INTO A SOAP::SOM OBJECT
A useful utility for SOAP::Deserializer is parsing raw XML documents or fragments into a SOAP::SOM object. SOAP::Lite developers use this technique to write unit tests for the SOAP::Lite module itself. It is a lot more efficient for testing aspects of the toolkit than generating client calls over the network. This is a perfect way for developers to write unit tests for their custom data types for example. π§
Here is an example of how raw XML content can be parsed into a SOAP::SOM object by using SOAP::Deserializer:
$xml = <<END_XML;
<foo>
<person>
<foo>123</foo>
<foo>456</foo>
</person>
<person>
<foo>789</foo>
<foo>012</foo>
</person>
</foo>
END_XML
my $som = SOAP::Deserializer->deserialize($xml);
π COPYRIGHT π
Copyright (C) 2000-2004 Paul Kulchenko. All rights reserved. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHORS π
Byrne Reese (byrne@majordojo.com) π
mwah π β this page is from perl v5.42.0, dated 2024-03-04, and it's SOAP::Deserializer(3), bestie. periodt. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-SOAP-Lite 1.27-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND CC-BY-ND-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms