Subversion Repositories XServices

Rev

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

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