XServices/doc/DateServices/getTimestamp.xml

35 lines
1.0 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getTimestamp</title>
<para>Get current timestamp in milliseconds (epoch).
Sample request:
<programlisting language="xml">
<![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp/>
</soapenv:Body>
</soapenv:Envelop
]]>
</programlisting>
Sample response:
<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">
<ns1:return>]]><emphasis>1325488875703</emphasis><![CDATA[</ns1:return>
</ns1:getTimestampResponse>
</soap:Body>
</soap:Envelope>]]>
</programlisting>
</para>
</section>