Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
159 brianR 1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE section [
3
<!ENTITY % myent SYSTEM "../entities.ent">
4
%myent;
5
]>
6
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
7
	xmlns:xi="http://www.w3.org/2001/XInclude">
8
	<title>wrapInCDATA</title>
9
	<para>Simply wraps any data fragment into &lt;![CDATA[ ... ]]&gt; section. This can be useful if you
10
	want to preserve indentation or line breaks.
11
	</para>
12
	<para>
13
	Sample request:
14
<programlisting language="xml"><![CDATA[
15
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
16
xmlns:ws="http://ws.xservices.brutex.net">
17
   <soapenv:Header/>
18
   <soapenv:Body>
19
      <ws:wrapInCDATA>
20
         <data>Hello World, here is some &lt;xml&gt; data</data>
21
      </ws:wrapInCDATA>
22
   </soapenv:Body>
23
</soapenv:Envelope>
24
]]></programlisting>
25
	Sample response:
26
	<programlisting language="xml"><![CDATA[
27
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
28
   <soap:Body>
29
      <ns2:wrapInCDATAResponse xmlns:ns2="http://ws.xservices.brutex.net">
30
         <return>&lt;![CDATA[Hello World, here is some &lt;xml> data]]&gt;</return>
31
      </ns2:wrapInCDATAResponse>
32
   </soap:Body>
33
</soap:Envelope>
34
]]></programlisting>
35
</para>
36
</section>