Subversion Repositories XServices

Rev

Rev 59 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59 Rev 163
Line 51... Line 51...
51
	<section>
51
	<section>
52
		<title>&outp;
52
		<title>&outp;
53
		</title>
53
		</title>
54
		<xi:include href="../types/ReturnCode.xml" />
54
		<xi:include href="../types/ReturnCode.xml" />
55
	</section>
55
	</section>
-
 
56
	<section>
-
 
57
	<para>
-
 
58
	Sample request: Start Windows Command Interpreter and print "Hello World" to STDOUT.
-
 
59
	<programlisting language="xml">
-
 
60
	<![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
61
   <soapenv:Header/>
-
 
62
   <soapenv:Body>
-
 
63
      <ws:runCommand>
-
 
64
         <executable>c:/windows/system32/cmd.exe</executable>
-
 
65
         <argline>/C "echo Hallo Welt!"</argline>
-
 
66
         <timeout>3000</timeout>
-
 
67
      </ws:runCommand>
-
 
68
   </soapenv:Body>
-
 
69
</soapenv:Envelope>]]>
-
 
70
	</programlisting>
-
 
71
	
-
 
72
	Sample response:
-
 
73
	<programlisting language="xml">
-
 
74
	<![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-
 
75
   <soap:Body>
-
 
76
      <ns2:runCommandResponse xmlns:ns2="http://ws.xservices.brutex.net">
-
 
77
         <return>
-
 
78
            <returnCode>0</returnCode>
-
 
79
            <stdOut/>
-
 
80
            <stdErr/>
-
 
81
            <propertyList>
-
 
82
               <name>ExecuteService.result</name>
-
 
83
               <value>0</value>
-
 
84
            </propertyList>
-
 
85
            <propertyList>
-
 
86
               <name>ExecuteService.stdout</name>
-
 
87
               <value>Hallo Welt!</value>
-
 
88
            </propertyList>
-
 
89
            <propertyList>
-
 
90
               <name>ExecuteService.stderr</name>
-
 
91
               <value/>
-
 
92
            </propertyList>
-
 
93
         </return>
-
 
94
      </ns2:runCommandResponse>
-
 
95
   </soap:Body>
-
 
96
</soap:Envelope>]]></programlisting></para></section>
-
 
97
<section>
-
 
98
<para>
-
 
99
Sample request: Start notepad.exe and close it after 15 seconds.
-
 
100
<programlisting language="xml">
-
 
101
<![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
102
   <soapenv:Header/>
-
 
103
   <soapenv:Body>
-
 
104
      <ws:runCommand>
-
 
105
         <executable>c:/windows/system32/notepad.exe</executable>
-
 
106
         <argline></argline>
-
 
107
         <timeout>15000</timeout>
-
 
108
      </ws:runCommand>
-
 
109
   </soapenv:Body>
-
 
110
</soapenv:Envelope>]]></programlisting></para></section>
56
</section>
111
</section>
57
 
112