Subversion Repositories XServices

Rev

Rev 25 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
		&lt;ReturnCode
33
		xmlns:ns2=&quot;http://ws.xservices.brutex.net&quot;&gt;
34
		&lt;returnCode&gt;0&lt;/returnCode&gt;
35
		&lt;stdOut/&gt;
36
		&lt;stdErr/&gt;
37
		&lt;propertyList&gt;
38
		<lineannotation>
39
			See
40
			<link linkend="antproperty">tns:antProperty</link>
41
			for details about the &lt;propertyList&gt; elements.
42
		</lineannotation>
43
		&lt;name&gt;key1&lt;/name&gt;
44
		&lt;value&gt;value1&lt;/value&gt;
45
		&lt;/propertyList&gt;
46
		&lt;propertyList&gt;
47
		&lt;name&gt;key2&lt;/name&gt;
48
		&lt;value&gt;value2&lt;/value&gt;
49
		&lt;/propertyList&gt;
50
		&lt;/ReturnCode&gt;
51
	</programlisting>
25 brianR 52
 
24 brianR 53
</section>