Multiple References and Circular References

This section describes how SOAP Encoding handles multiple references and circular references.

To help serializing multiple reference, SOAP encoding specification offers the following rule:

Rule 6. When serializing an labeled inbound edge, "enc:id" attribute can be added to provide an identification to the node. If this node has other labeled inbound edges, they can be serialized with "enc:ref" attributes to refer to the node by the identification defined in the "enc:id" attribute. Of course, the value of "enc:id" must be unique.

Example 5 - Multi references: The following graph represents two compound values sharing the same sub value.

   --- Bill -->( )--- mother --->               
                                ( )<-- Mary ---
   --- Mike -->( )--- sister --->               

Using the "enc:id" and "enc:ref" attributes, this graph can be easily serialized as:

   <Mary enc:id="101"/>
    <mother enc:ref="#101"/>
    <sister enc:ref="#101"/>

Example 6 - Circular References: The following graph represents two compound values has each other as their sub values.

                 <--- son ------
   --- Bill -->( )             ( )<-- Mary ---
                 --- mother --->               

Using the "enc:id" and "enc:ref" attributes, this graph can also be easily serialized as:

   <Mary enc:id="101">
    <son enc:ref="#102"/>
   <Bill enc:id="102">
    <mother enc:ref="#101"/>

Last update: 2007.

Table of Contents

 About This Book

 Introduction to Web Service

 Introduction to SOAP (Simple Object Access Protocol)

 SOAP Message Structure

 SOAP Message Transmission and Processing

 SOAP Data Model

SOAP Encoding

 What Is SOAP Encoding?

Multiple References and Circular References

 Node Types - simple, struct, array

 SOAP Encoding Attributes and Namespace

 Using SOAP Encoding in SOAP Messages

 SOAP RPC Presentation

 SOAP Properties Model

 SOAP Message Exchange Patterns

 SOAP HTTP Binding

 SOAP Perl Implementations

 SOAP PHP Implementations

 SOAP Java Implementations

 Perl SOAP::Lite - SOAP Server-Client Communication Module

 Perl Socket Test Program for HTTP and SOAP

 Perl SOAP::Lite for GetSpeech SOAP 1.1 Web Service

 Perl SOAP::Lite 0.710 for SOAP 1.2 Web Services

 Perl SOAP::Lite 0.710 for WSDL

 PHP SOAP Extension Client Programs

 PHP SOAP Extension Server Programs

 Java Socket and HttpURLConnection for SOAP

 SAAJ - SOAP with Attachments API for Java

 SoapUI - SOAP Web Service Testing Tool

 WS-Security - SOAP Message Security Extension

 WS-Security X.509 Certificate Token

 Web Services and SOAP Terminology


 PDF Printing Version