59 |
brianR |
1 |
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
2 |
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
|
|
|
3 |
xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
4 |
<title>ReturnCode type</title>
|
|
|
5 |
<para>
|
|
|
6 |
The ReturnCode type is used as the generic answer type for most of the
|
|
|
7 |
<application class='software'>BruteXservices</application>
|
|
|
8 |
operations.
|
|
|
9 |
</para>
|
|
|
10 |
<para>
|
|
|
11 |
The defining Java class is
|
|
|
12 |
<ulink url="javadoc/net/brutex/xservices/types/ReturnCode.html">
|
|
|
13 |
<classname>net.brutex.xservices.types.ReturnCode</classname>
|
|
|
14 |
</ulink>
|
|
|
15 |
.
|
|
|
16 |
</para>
|
|
|
17 |
<bridgehead renderas='sect3'>Schema definition</bridgehead>
|
|
|
18 |
<programlisting language="xml"><![CDATA[
|
24 |
brianR |
19 |
<xs:complexType name="ReturnCodeType">
|
|
|
20 |
<xs:sequence>
|
25 |
brianR |
21 |
<xs:element name="returnCode" type="xs:int"/>
|
|
|
22 |
<xs:element minOccurs="0" name="stdOut" type="xs:string"/>
|
|
|
23 |
<xs:element minOccurs="0" name="stdErr" type="xs:string"/>
|
59 |
brianR |
24 |
<xs:element maxOccurs="unbounded" minOccurs="0" name="propertyList" nillable="true" type="]]><link
|
|
|
25 |
linkend="antproperty">tns:antProperty</link><![CDATA["/>
|
24 |
brianR |
26 |
</xs:sequence>
|
25 |
brianR |
27 |
</xs:complexType>]]>
|
59 |
brianR |
28 |
</programlisting>
|
25 |
brianR |
29 |
|
59 |
brianR |
30 |
<bridgehead renderas='sect3'>Example XML</bridgehead>
|
|
|
31 |
<programlisting language="xml">
|
|
|
32 |
<ReturnCode
|
|
|
33 |
xmlns:ns2="http://ws.xservices.brutex.net">
|
|
|
34 |
<returnCode>0</returnCode>
|
|
|
35 |
<stdOut/>
|
|
|
36 |
<stdErr/>
|
|
|
37 |
<propertyList>
|
|
|
38 |
<lineannotation>
|
|
|
39 |
See
|
|
|
40 |
<link linkend="antproperty">tns:antProperty</link>
|
|
|
41 |
for details about the <propertyList> elements.
|
|
|
42 |
</lineannotation>
|
|
|
43 |
<name>key1</name>
|
|
|
44 |
<value>value1</value>
|
|
|
45 |
</propertyList>
|
|
|
46 |
<propertyList>
|
|
|
47 |
<name>key2</name>
|
|
|
48 |
<value>value2</value>
|
|
|
49 |
</propertyList>
|
|
|
50 |
</ReturnCode>
|
|
|
51 |
</programlisting>
|
25 |
brianR |
52 |
|
24 |
brianR |
53 |
</section>
|