SOAP::Deserializer(3pm)

SOAP::Deserializer3pm

The means by which the toolkit manages the conversion of xml into an object manageable by a developer

Overview

SOAP::Deserializer provides the means by which incoming XML is decoded into a Perl data structure.

Methods

context

This provides access to the calling context of "SOAP::Deserializer". In a client side context the 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 for 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);

Releases

11 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12–13
  9. Arch

Authors

Byrne Reese ([email protected])

From perl-soap-lite 1.27-13 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.