3555,6 → 3555,61 |
|
</section> |
</section> |
<section> |
<para> |
Sample request: Start Windows Command Interpreter and print "Hello World" to STDOUT. |
<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:runCommand> |
<executable>c:/windows/system32/cmd.exe</executable> |
<argline>/C "echo Hallo Welt!"</argline> |
<timeout>3000</timeout> |
</ws:runCommand> |
</soapenv:Body> |
</soapenv:Envelope>]]> |
</programlisting> |
|
Sample response: |
<programlisting language="xml"> |
<![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:runCommandResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return> |
<returnCode>0</returnCode> |
<stdOut/> |
<stdErr/> |
<propertyList> |
<name>ExecuteService.result</name> |
<value>0</value> |
</propertyList> |
<propertyList> |
<name>ExecuteService.stdout</name> |
<value>Hallo Welt!</value> |
</propertyList> |
<propertyList> |
<name>ExecuteService.stderr</name> |
<value/> |
</propertyList> |
</return> |
</ns2:runCommandResponse> |
</soap:Body> |
</soap:Envelope>]]></programlisting></para></section> |
<section> |
<para> |
Sample request: Start notepad.exe and close it after 15 seconds. |
<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:runCommand> |
<executable>c:/windows/system32/notepad.exe</executable> |
<argline></argline> |
<timeout>15000</timeout> |
</ws:runCommand> |
</soapenv:Body> |
</soapenv:Envelope>]]></programlisting></para></section> |
</section> |
<section version="5.0" xml:base="ExecuteServices/runCommandWithSSH.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>runCommandWithSSH</title> |
4206,6 → 4261,19 |
]]></programlisting> |
</para> |
</section> |
<section version="5.0" xml:base="XmlServices/insertNodes2.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>insertNodes2</title> |
<para>Insert an xml fragment into xml resource (i.e. file, URL) specified by an XPath expression. |
This operation is namespace aware. |
|
Sample request: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
</para> |
</section> |
<section version="5.0" xml:base="XmlServices/replaceNodes.xml" xmlns="http://docbook.org/ns/docbook" 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. |
4274,6 → 4342,19 |
</soap:Envelope>]]></programlisting> |
</para> |
</section> |
<section version="5.0" xml:base="XmlServices/replaceNodes2.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>replaceNodes2</title> |
<para>Replace an xml fragment with another xml fragment read from a resource (i.e. file, URL). This operation is namespace aware. |
|
Sample request: |
<programlisting language="xml"> |
... |
</programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
</para> |
</section> |
<section version="5.0" xml:base="XmlServices/selectXPath.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>selectXPath</title> |
<para>Selects xmlfragements, nodes, attribute or text from xml data using an XPath expression. |