|
Example of transformations
Here's a sample of the transformations the RpcToDocument SoapExtension makes to an incoming SOAP message:
--- Unmodified Request to Server (RPC/Encoded)
<?xml version="1.0"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"[1]
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<SOAP-ENV:Body>
<tns:distancePtToPt xmlns:tns="http://tempuri.org/">[2]
<p1>
<x xsi:type="xsd:int">0</x>[3]
<y xsi:type="xsd:int">0</y>
</p1>
<p2>
<x xsi:type="xsd:int">1</x>
<y xsi:type="xsd:int">1</y>
</p2>
</tns:distancePtToPt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--- Modified Request to Server (Document/Literal)
<?xml version="1.0"?>
<SOAP-ENV:Envelope[1]
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<SOAP-ENV:Body>
<distancePtToPt xmlns="http://tempuri.org/">[2]
<p1>
<x>0</x>[3]
<y>0</y>
</p1>
<p2>
<x>1</x>
<y>1</y>
</p2>
</distancePtToPt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
1. encodingStyle attribute removed from Envelope or Body
2. Namespace of function becomes default for entire call
3. All attributes are removed from parameters
|
© Copyright 2003 Jim Klopfenstein.
Last update: 2/10/2003; 8:43:54 AM.
|
|