Subversion Repositories XServices

Rev

Rev 160 | Rev 165 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 160 Rev 163
Line 3553... Line 3553...
3553
		</ReturnCode>
3553
		</ReturnCode>
3554
	</programlisting>
3554
	</programlisting>
Line 3555... Line 3555...
3555
 
3555
 
3556
</section>
3556
</section>
-
 
3557
	</section>
-
 
3558
	<section>
-
 
3559
	<para>
-
 
3560
	Sample request: Start Windows Command Interpreter and print "Hello World" to STDOUT.
-
 
3561
	<programlisting language="xml">
-
 
3562
	<![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
3563
   <soapenv:Header/>
-
 
3564
   <soapenv:Body>
-
 
3565
      <ws:runCommand>
-
 
3566
         <executable>c:/windows/system32/cmd.exe</executable>
-
 
3567
         <argline>/C "echo Hallo Welt!"</argline>
-
 
3568
         <timeout>3000</timeout>
-
 
3569
      </ws:runCommand>
-
 
3570
   </soapenv:Body>
-
 
3571
</soapenv:Envelope>]]>
-
 
3572
	</programlisting>
-
 
3573
	
-
 
3574
	Sample response:
-
 
3575
	<programlisting language="xml">
-
 
3576
	<![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-
 
3577
   <soap:Body>
-
 
3578
      <ns2:runCommandResponse xmlns:ns2="http://ws.xservices.brutex.net">
-
 
3579
         <return>
-
 
3580
            <returnCode>0</returnCode>
-
 
3581
            <stdOut/>
-
 
3582
            <stdErr/>
-
 
3583
            <propertyList>
-
 
3584
               <name>ExecuteService.result</name>
-
 
3585
               <value>0</value>
-
 
3586
            </propertyList>
-
 
3587
            <propertyList>
-
 
3588
               <name>ExecuteService.stdout</name>
-
 
3589
               <value>Hallo Welt!</value>
-
 
3590
            </propertyList>
-
 
3591
            <propertyList>
-
 
3592
               <name>ExecuteService.stderr</name>
-
 
3593
               <value/>
-
 
3594
            </propertyList>
-
 
3595
         </return>
-
 
3596
      </ns2:runCommandResponse>
-
 
3597
   </soap:Body>
-
 
3598
</soap:Envelope>]]></programlisting></para></section>
-
 
3599
<section>
-
 
3600
<para>
-
 
3601
Sample request: Start notepad.exe and close it after 15 seconds.
-
 
3602
<programlisting language="xml">
-
 
3603
<![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
3604
   <soapenv:Header/>
-
 
3605
   <soapenv:Body>
-
 
3606
      <ws:runCommand>
-
 
3607
         <executable>c:/windows/system32/notepad.exe</executable>
-
 
3608
         <argline></argline>
-
 
3609
         <timeout>15000</timeout>
-
 
3610
      </ws:runCommand>
-
 
3611
   </soapenv:Body>
3557
	</section>
3612
</soapenv:Envelope>]]></programlisting></para></section>
3558
</section>
3613
</section>
3559
		<section version="5.0" xml:base="ExecuteServices/runCommandWithSSH.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3614
		<section version="5.0" xml:base="ExecuteServices/runCommandWithSSH.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3560
	<title>runCommandWithSSH</title>
3615
	<title>runCommandWithSSH</title>
3561
	<para>Executes a command through a SSH session.</para>
3616
	<para>Executes a command through a SSH session.</para>
Line 4204... Line 4259...
4204
   </soap:Body>
4259
   </soap:Body>
4205
</soap:Envelope>
4260
</soap:Envelope>
4206
]]></programlisting>
4261
]]></programlisting>
4207
</para>
4262
</para>
4208
</section>
4263
</section>
-
 
4264
		<section version="5.0" xml:base="XmlServices/insertNodes2.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
4265
	<title>insertNodes2</title>
-
 
4266
	<para>Insert an xml fragment into xml resource (i.e. file, URL) specified by an XPath expression.
-
 
4267
	This operation is namespace aware.
-
 
4268
	
-
 
4269
	Sample request:
-
 
4270
<programlisting language="xml"><![CDATA[
-
 
4271
...]]></programlisting>
-
 
4272
	Sample response:
-
 
4273
	<programlisting language="xml"><![CDATA[
-
 
4274
...]]></programlisting>
-
 
4275
</para>
-
 
4276
</section>
4209
		<section version="5.0" xml:base="XmlServices/replaceNodes.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4277
		<section version="5.0" xml:base="XmlServices/replaceNodes.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4210
	<title>replaceNodes</title>
4278
	<title>replaceNodes</title>
4211
	<para>Replace an xml fragment with another xml fragment. This operation is namespace aware.
4279
	<para>Replace an xml fragment with another xml fragment. This operation is namespace aware.
Line 4212... Line 4280...
4212
	
4280
	
Line 4272... Line 4340...
4272
      </ns2:replaceNodesResponse>
4340
      </ns2:replaceNodesResponse>
4273
   </soap:Body>
4341
   </soap:Body>
4274
</soap:Envelope>]]></programlisting>
4342
</soap:Envelope>]]></programlisting>
4275
</para>
4343
</para>
4276
</section>
4344
</section>
-
 
4345
		<section version="5.0" xml:base="XmlServices/replaceNodes2.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
4346
	<title>replaceNodes2</title>
-
 
4347
	<para>Replace an xml fragment with another xml fragment read from a resource (i.e. file, URL). This operation is namespace aware.
-
 
4348
	
-
 
4349
	Sample request:
-
 
4350
<programlisting language="xml">
-
 
4351
...
-
 
4352
</programlisting>
-
 
4353
	Sample response:
-
 
4354
	<programlisting language="xml"><![CDATA[
-
 
4355
...]]></programlisting>
-
 
4356
</para>
-
 
4357
</section>
4277
		<section version="5.0" xml:base="XmlServices/selectXPath.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4358
		<section version="5.0" xml:base="XmlServices/selectXPath.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4278
	<title>selectXPath</title>
4359
	<title>selectXPath</title>
4279
	<para>Selects xmlfragements, nodes, attribute or text from xml data using an XPath expression.
4360
	<para>Selects xmlfragements, nodes, attribute or text from xml data using an XPath expression.
4280
	This function requires namespaces to be declared correctly.</para>
4361
	This function requires namespaces to be declared correctly.</para>
4281
	<para>
4362
	<para>