Subversion Repositories XServices

Compare Revisions

No changes between revisions

Ignore whitespace Rev 158 → Rev 159

/xservices/trunk/doc/DateServices/getDate.xml
8,7 → 8,7
<title>getDate</title>
<para>Get current time and date.
Sample request:
<screen><![CDATA[
<programlisting language="xml"><![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
17,7 → 17,7
<ws:getDate/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
]]></programlisting>
Sample response:
<programlisting language="xml"><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
/xservices/trunk/doc/DateServices/getDateExtended.xml
8,7 → 8,7
<title>getDateExtended</title>
<para>Get current time and date (extended Version).
Sample response:
<screen>
<programlisting language="xml">
<![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
25,7 → 25,7
</soap:Body>
</soap:Envelope>
]]>
</screen>
</programlisting>
 
</para>
</section>
/xservices/trunk/doc/DateServices/DateServices.xml
0,0 → 1,28
<?xml version="1.0" encoding="utf-8"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude" id="dateservices">
<title>DateServices</title>
<para>The DateService bundles various date and time related operations.
</para>
<para>Its WSDL is located at http://server:port/XServices/DateService?wsdl</para>
<para>XServices uses a date/time format as suggested by http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTime, which is basically a subset of ISO8601. Most input parameters for date/time have to be provided as such.
Another date/time format, that is often used is defined by RFC822. The major difference to ISO8601 and the Xmlschema datetime format, is in the way how the time zone is specified. ISO8601 specifies a colon to be used to separate hour and minutes time shift. RFC822 does not use a separator.
<itemizedlist>
<listitem>
<para>ISO8601 (example: "2012-01-17T23:50:00+01:00")</para>
</listitem>
<listitem>
<para>RFC822 (example: "2012-01-17T23:50:00+0100")</para>
</listitem>
</itemizedlist>
</para>
<xi:include href="./getDate.xml" />
<xi:include href="./getDateExtended.xml" />
<xi:include href="./formatDate.xml" />
<xi:include href="./getInTimezone.xml" />
<xi:include href="./getTimestamp.xml" />
<xi:include href="./getTimestamp2.xml" />
<xi:include href="./getTimezones.xml" />
</section>
Property changes:
Added: svn:mime-type
+text/plain
\ No newline at end of property
/xservices/trunk/doc/DateServices/getTimestamp.xml
8,7 → 8,8
<title>getTimestamp</title>
<para>Get current timestamp in milliseconds (epoch).
Sample request:
<screen><![CDATA[
<programlisting language="xml">
<![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
17,9 → 18,11
<ws:getTimestamp/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
]]>
</programlisting>
Sample response:
<screen><![CDATA[
<programlisting language="xml">
<![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getTimestampResponse xmlns:ns1="http://ws.xservices.brutex.net">
26,6 → 29,7
<ns1:return>]]><emphasis>1325488875703</emphasis><![CDATA[</ns1:return>
</ns1:getTimestampResponse>
</soap:Body>
</soap:Envelope>]]></screen>
</soap:Envelope>]]>
</programlisting>
</para>
</section>
/xservices/trunk/doc/DateServices/getTimestamp2.xml
8,7 → 8,8
<title>getTimestamp2</title>
<para>Get current timestamp in seconds (unix timestamp).
Sample request:
<screen><![CDATA[
<programlisting language="xml">
<![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
17,9 → 18,11
<ws:getTimestamp2/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
]]>
</programlisting>
Sample response:
<screen><![CDATA[
<programlisting language="xml">
<![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getTimestamp2Response xmlns:ns1="http://ws.xservices.brutex.net">
26,6 → 29,7
<ns1:return>]]><emphasis>1325488876</emphasis><![CDATA[</ns1:return>
</ns1:getTimestamp2Response>
</soap:Body>
</soap:Envelope>]]></screen>
</soap:Envelope>]]>
</programlisting>
</para>
</section>