HTTP Post per Telnet: Unterschied zwischen den Versionen

Aus ARTECO Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 9: Zeile 9:
 
   
 
   
 
  <timekeeping>
 
  <timekeeping>
<event>work_start</event>
+
  <event>work_start</event>
<telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
+
  <telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
<user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
+
  <user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
 
  </timekeeping>
 
  </timekeeping>

Aktuelle Version vom 5. Januar 2010, 20:52 Uhr

Beispiel für einen HTTP Post per Telnet

$ telnet xml.arteco.de 80
POST /coworkers/99CF4720-A7B6-012C-0591-000D609CCCD8/timekeepings.xml HTTP/1.0 
Connection: Close
Content-Type: application/xml
Authorization: Basic Zm9vOmJhcg==
Content-Length: 209

<timekeeping>
 <event>work_start</event>
 <telematik-timestamp type="datetime">2009-12-14T17:35:42Z</telematik-timestamp>
 <user-timestamp type="datetime">2009-12-14T17:35:42Z</user-timestamp>
</timekeeping>