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" id="hostconnection">
|
|
|
4 |
<title>HostConnection type</title>
|
|
|
5 |
<para>The HostConnection type identifies a server resource and login
|
|
|
6 |
credentials.</para>
|
|
|
7 |
<para>
|
|
|
8 |
The defining Java class is
|
|
|
9 |
<ulink url="javadoc/net/brutex/xservices/types/HostConnection.html">
|
|
|
10 |
<classname>net.brutex.xservices.types.HostConnection</classname>
|
|
|
11 |
</ulink>
|
|
|
12 |
.
|
|
|
13 |
</para>
|
|
|
14 |
<bridgehead renderas='sect3'>Schema definition</bridgehead>
|
|
|
15 |
<programlisting language="xml"><![CDATA[
|
|
|
16 |
<xs:complexType name="connection">
|
|
|
17 |
<xs:sequence>
|
|
|
18 |
<xs:element name="hostname" type="xs:string"/>
|
|
|
19 |
<xs:element name="port" type="xs:int"/>
|
|
|
20 |
<xs:element minOccurs="0" name="user" type="xs:string"/>
|
|
|
21 |
<xs:element minOccurs="0" name="password" type="xs:string"/>
|
|
|
22 |
</xs:sequence>
|
|
|
23 |
</xs:complexType>
|
|
|
24 |
]]>
|
|
|
25 |
</programlisting>
|
|
|
26 |
<bridgehead renderas='sect3'>Example XML</bridgehead>
|
|
|
27 |
<programlisting language="xml"><![CDATA[
|
|
|
28 |
<host>
|
|
|
29 |
<hostname>server.brutex.net</hostname>
|
|
|
30 |
<port>512</port> <!-- default rExec port -->
|
|
|
31 |
<user>brian</user>
|
|
|
32 |
<!--Optional:-->
|
|
|
33 |
<password>somepass</password>
|
|
|
34 |
</host>
|
|
|
35 |
]]>
|
|
|
36 |
</programlisting>
|
|
|
37 |
</section>
|