Tutorial Addendum on Web Account and SOAP - SOAP Encoding
| |
Multiple References and Annular References
To advice serializing assorted reference, SOAP encoding blueprint offers the afterward rule:
6. If serializing an labeled entering edge, "enc:id" aspect can be added to accommodate an identification
to the node. If this bulge has additional labeled entering edges, they can be after with "enc:ref" attributes
to accredit to the bulge by the identification authentic in the "enc:id" attribute. Of course, the amount of "enc:id"
must be unique.
Example 5 - Multi references: The afterward blueprint represents two admixture ethics administration the aforementioned sub value.
--- Bill -->( )--- mother --->
( )<-- Mary ---
--- Mike -->( )--- sister --->
Using the "enc:id" and "enc:ref" attributes, this blueprint can be calmly after as:
<Mary enc:id="101"/>
<Bill>
<mother enc:ref="#101"/>
</Bill>
<Mike>
<sister enc:ref="#101"/>
</Mike>
Example 6 - Annular References: The afterward blueprint represents two admixture ethics has anniversary additional as their sub values.
<--- son ------
--- Bill -->( ) ( )<-- Mary ---
--- mother --->
Using the "enc:id" and "enc:ref" attributes, this blueprint can aswell be calmly after as:
<Mary enc:id="101">
<son enc:ref="#102"/>
</Mary>
<Bill enc:id="102">
<mother enc:ref="#101"/>
</Bill>
Node Types
To advice anecdotic the blazon of node, SOAP encoding blueprint aswell offers the afterward rule:
7. If serializing an labeled entering edge, "enc:nodeType" aspect can be added to indicate
what affectionate of a amount this bulge represents. "enc:nodeType" may be one of the strings "simple"
or "struct" or "array".
Example:
<currentCustomer enc:nodeType="struct">
<id enc:nodeType="simple">2321</id>
<name enc:nodeType="simple"></name>
<isSmoking enc:nodeType="simple">false</isSmoking>
</currentCustomer>
SOAP encoding Attributes and Namespace
As we can see from the antecedent sections, SOAP encoding blueprint defines the afterward attributes in its own
namespace, "http://www.w3.org/2003/05/soap-encoding".
<... xmlns:enc="http://schemas.xmlsoap.org/soap/encoding" ...>
<... enc:nodeType="simple" enc:id="...">
</...>
<... enc:nodeType="simple" enc:ref="..."/>
<... enc:nodeType="array" enc:arraySize="..." enc:itemType="...">
...
</..>
<... enc:noteType="struct">
...
</..>
</...>
Using SOAP encoding in SOAP Messages
SOAP encoding can be acclimated in SOAP attack blocks and SOAP bodies by allegorical the SOAP "encodingStyle" attribute
as encodingStyle="http://schemas.xmlsoap.org/soap/encoding/". Actuality is a SOAP bulletin archetype with SOAP encoding:
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header
env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<h:expense xmlns:h="http://www.yang.com"
env:role="http://www.w3.org/2003/05/soap-envelope/role/next"
env:mustUnderstand="true">
</h:expense>
</env:Header>
<env:Body
env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
<b:travel enc:nodeType="struct" xmlns:b="http://www.yang.com">
<b:currency enc:id="euro">
<b:rate>0.72</b:rate>
</b:currency>
<b:flight>429.00</b:flight>
</b:travel>
<b:shopping enc:nodeType="struct" xmlns:b="http://www.yang.com">
<b:currency enc:ref="#euro"/>
<b:paris enc:nodeType="array" enc:arraySize="3" enc:itemType="xsi:float">
<b:item>29.00</b:item>
<b:item>99.00</b:item>
<b:item>19.00</b:item>
</b:paris>
</b:shopping>
</env:Body>
</env:Envelope>
Conclusions
SOAP encoding is based on SOAP date model.
SOAP encoding basal rules are simple to remember: entering bend makes an XML element, and outbound edges create sub elements.
Question, can a accumulation of nodes be after into two altered XML messages?
|
encoding, nodetype, xmlns, simple, attributes, struct, following, mother, 00<, envelope, encodingstyle, graph, example, references, serialized, inbound, specification, serializing, currency, represents, header, labeled, attribute, values, array, value, , soap encoding, enc nodetype, http www, enc ref, org 2003, < env, nodetype simple, < mary, encoding <, 101 <, < enc, < bill, yang com, item <, www yang, enc http, encodingstyle http, < <, nodetype struct, labeled inbound, encoding specification, inbound edge, ref attributes, ref 101, bill <, xmlns enc, enc nodetype simple, enc nodetype struct, soap encoding specification, enc nodetype array, env encodingstyle http, soap encoding xmlns, nodetype struct xmlns, org soap encoding, http schemas xmlsoap, ref attributes this, attributes this graph, soap soap encoding, labeled inbound edge, following graph represents, |
Also see ...
This affiliate describes:Java Implementations of SOAP.Axis Accession Requirements on Windows.Installing Arbor 1.2.1 on Windows.Installing JAF 1.0.2./
Installing Arbor 1.2.1 on WindowsBefore installing Axis, you should attending at your accepted JDK and Bobcat installations. Actuality is what I accept on my system:Name Ada
This affiliate describes:What are SOAP bulletin barter patterns?What is Request Response Bulletin Barter Pattern?What is Acknowledgment Bulletin Barter Pattern?
Rule 2: At the responding SOAP node, there will be addition set of SOAP backdrop with the afterward antecedent values: http://www.w3.org/2003/05/soap/bindingFramework/ExchangeContext /ExchangePatternName
This affiliate describes:Generic SOAP bulletin structure.SOAP accountability bulletin structure.SOAP Bulletin Structure
SOAP Accountability MessageA SOAP accountability bulletin is a appropriate SOAP bulletin acclimated to backpack absurdity information. It haveto accept alone one physique adolescent aspect alleged "Fault
This affiliate describes:Available Perl implemations of SOAP.SOAP::Lite for Perl on Windows.Installing ActivePerl v5.8.7 on Windows.SOAP::Lite 0.55 in Active
SOAP::Lite 0.55 in ActivePerl 5.8.7Now, let s analysis afresh the SOAP::Lite amalgamation in ActivePerl v5.8.7: dir perlsitelibSOAP...12/08/2003 09:13 AM
This affiliate describes:What is SOAP RPC Presentation?When and how to use Web methods to adjure RPC?How to use SOAP letters to adjure RPC?Some examples of R
Using SOAP Letters to Adjure RPCInvocation of added complicated limited procedures requires SOAP messages. Actuality is an example.Example 3 A user wants to amend prices