Subversion Repositories XServices

Rev

Rev 25 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24 brianR 1
<?xml version='1.0' encoding='UTF-8'?><section>
2
    <title>ReturnCode type</title>
3
    <para>The ReturnCode type is used as the generic answer type for most of the &brs; operations.</para>
4
    <para>The defining Java class is
5
  <ulink url="javadoc/net/brutex/xservices/types/ReturnCode.html">
6
      <classname>net.brutex.xservices.types.ReturnCode</classname></ulink>.</para>
7
    <section>
8
        <title>Schema description</title>
9
        <programlisting language="xml"><![CDATA[
10
<xs:complexType name="ReturnCodeType">
11
    <xs:sequence>
12
       <xs:element name="returnCode" type="xs:int"/>
13
       <xs:element minOccurs="0" name="stdOut" type="xs:string"/>
14
       <xs:element minOccurs="0" name="stdErr" type="xs:string"/>
15
            <xs:element maxOccurs="unbounded" minOccurs="0" name="propertyList" nillable="true" type="]]><link linkend="antproperty">tns:antProperty</link><![CDATA["/>
16
    </xs:sequence>
17
            </xs:complexType>]]>
18
        </programlisting>
19
    </section>
20
    <section>
21
        <title>Example XML </title>
22
        <programlisting language="xml">&lt;ReturnCode xmlns:ns2=&quot;http://ws.xservices.brutex.net&quot;&gt;
23
            &lt;returnCode&gt;0&lt;/returnCode&gt;
24
            &lt;stdOut/&gt;
25
            &lt;stdErr/&gt;
26
            &lt;propertyList&gt;            <lineannotation>See <link linkend="antproperty">tns:antProperty</link> for details about the &lt;propertyList&gt; elements.</lineannotation>
27
            &lt;name&gt;key1&lt;/name&gt;
28
            &lt;value&gt;value1&lt;/value&gt;
29
            &lt;/propertyList&gt;
30
            &lt;propertyList&gt;
31
            &lt;name&gt;key2&lt;/name&gt;
32
            &lt;value&gt;value2&lt;/value&gt;
33
            &lt;/propertyList&gt;
34
        &lt;/ReturnCode&gt;</programlisting>
35
    </section>
36
</section>