/xservices/trunk/doc/XmlServices/insertNodes.xml |
---|
0,0 → 1,74 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>insertNodes</title> |
<para>Insert an xml fragment into other elements specified by an XPath expression. |
This operation is namespace aware. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:insertNodes> |
<sourcexml><![CDATA[ |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books> |
]]]]><![CDATA[></sourcexml> |
<encoding>utf-8</encoding> |
<namespaceList> |
<!--Zero or more repetitions:--> |
<namespace> |
<prefix></prefix> |
<uri></uri> |
</namespace> |
</namespaceList> |
<xpath>/books/author</xpath> |
<!--Optional:--> |
<xmldata><![CDATA[<age namespace="http://btx"/>]]]]><![CDATA[></xmldata> |
</ws:insertNodes> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:insertNodesResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[<?xml version='1.0' encoding='UTF-8'?> |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
<age namespace="http://btx"/></author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
<age namespace="http://btx"/></author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
<age namespace="http://btx"/></author> |
</books>]]]]><![CDATA[></!></return> |
</ns2:insertNodesResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/doc/XmlServices/wrapInCDATA.xml |
---|
0,0 → 1,36 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>wrapInCDATA</title> |
<para>Simply wraps any data fragment into <![CDATA[ ... ]]> section. This can be useful if you |
want to preserve indentation or line breaks. |
</para> |
<para> |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:wrapInCDATA> |
<data>Hello World, here is some <xml> data</data> |
</ws:wrapInCDATA> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:wrapInCDATAResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[Hello World, here is some <xml> data]]></return> |
</ns2:wrapInCDATAResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/doc/XmlServices/operationName.xml |
---|
0,0 → 1,59 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title> ... |
</title> |
<para>Description here</para> |
<section> |
<title>&inp; |
</title> |
<para /> |
<table frame="all"> |
<title>Input parameters |
</title> |
<tgroup cols="4"> |
<colspec colnum="1" colname="parameter" /> |
<colspec colnum="2" colname="type" /> |
<colspec colnum="3" colname="required" /> |
<colspec colnum="4" colname="description" /> |
<thead> |
<row> |
<entry>parameter</entry> |
<entry>type</entry> |
<entry>required</entry> |
<entry>description</entry> |
</row> |
</thead> |
<tbody> |
<row> |
<entry>host</entry> |
<entry>HostConnection</entry> |
<entry>Yes</entry> |
<entry> |
Host where to execute the command. See |
<link linkend='hostconnection'>HostConnection</link> |
. |
</entry> |
</row> |
<row> |
<entry>command</entry> |
<entry>String</entry> |
<entry>No</entry> |
<entry>Any command including arguments</entry> |
</row> |
¶m-timeout; |
</tbody> |
</tgroup> |
</table> |
<para /> |
</section> |
<section> |
<title>&outp; |
</title> |
<xi:include href="../types/ReturnCode.xml" /> |
</section> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/doc/XmlServices/XmlServices.xml |
---|
0,0 → 1,13 |
<?xml version='1.0' encoding="utf-8"?> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude" |
id="xmlservices"> |
<title>XmlServices</title> |
<para>The XmlService provides operations to manipulate XML structures. |
Its WSDL is located at |
http://server:port/XServices/XmlService?wsdl</para> |
<xi:include href="./insertNodes.xml" /> |
<xi:include href="./replaceNodes.xml" /> |
<xi:include href="./wrapInCDATA.xml" /> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/doc/XmlServices/replaceNodes.xml |
---|
0,0 → 1,74 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>replaceNodes</title> |
<para>Replace an xml fragment with another xml fragment. This operation is namespace aware. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:replaceNodes> |
<sourcexml><![CDATA[ |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books> |
]]]]><![CDATA[> |
</sourcexml> |
<encoding>utf-8</encoding> |
<namespaceList> |
<!--Zero or more repetitions:--> |
<namespace> |
<prefix></prefix> |
<uri></uri> |
</namespace> |
</namespaceList> |
<xpath>*/name[text()='Schwab']</xpath> |
<!--Optional:--> |
<xmldata><![CDATA[<name>Meyer</name><age>45</age><!--edited here-->]]]]><![CDATA[></xmldata> |
</ws:replaceNodes> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:replaceNodesResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[<?xml version='1.0' encoding='UTF-8'?> |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Meyer</name><age>45</age><!--edited here--> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books>]]]]><![CDATA[></return> |
</ns2:replaceNodesResponse> |
</soap:Body> |
</soap:Envelope>]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |