Arkadaşlar,

Bir arkadaşım www.arvento.com'dan uydu ile araç takibi konusunda hizmet
alıyor.

Bu firma, alternatif olarak web servisi hizmeti de veriyor:
http://a29.arvento.com/Service/Report.asmx

Daha önce hiç web servisi tecrübem olmadı. CURL ile bir deneme yaptım.
Verileri XML olarak gtirdim, ancak gelen veriyi ayrıştırıp kullanamadım.

Yukarıdaki linkte yer alan GetVehicleStatus fonksiyonunu denemek istedim
Cevap olarak gelen XML ektedir.

Acaba, bu iş nasıl yapılır, gelen veriyi nasıl kullanabilirim (diziye nasıl
atabilirim)?

Selamlar,
Nuri Akman
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://www.arvento.com/";>
  <xs:schema id="tblVehicleStatus" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="tblVehicleStatus" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="dtVehicleStatus">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Device_x0020_No" type="xs:string" minOccurs="0" />
                <xs:element name="GMT_x0020_Date_x002F_Time" type="xs:dateTime" minOccurs="0" />
                <xs:element name="Latitude" type="xs:double" minOccurs="0" />
                <xs:element name="Longtitude" type="xs:double" minOccurs="0" />
                <xs:element name="Speed" type="xs:double" minOccurs="0" />
                <xs:element name="Address" type="xs:string" minOccurs="0" />
                <xs:element name="Building_x0020__x002F__x0020_Region" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    <tblVehicleStatus xmlns="">
      <dtVehicleStatus diffgr:id="dtVehicleStatus1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
        <Device_x0020_No>11111111</Device_x0020_No>
        <GMT_x0020_Date_x002F_Time>2012-07-30T06:29:33+03:00</GMT_x0020_Date_x002F_Time>
        <Latitude>40.392048</Latitude>
        <Longtitude>33.606606</Longtitude>
        <Speed>95.67</Speed>
        <Address>Bolu, Türkiye</Address>
        <Building_x0020__x002F__x0020_Region />
      </dtVehicleStatus>
      <dtVehicleStatus diffgr:id="dtVehicleStatus2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
        <Device_x0020_No>2222222222</Device_x0020_No>
        <GMT_x0020_Date_x002F_Time>2012-07-30T06:03:57+03:00</GMT_x0020_Date_x002F_Time>
        <Latitude>41.005493</Latitude>
        <Longtitude>29.070576</Longtitude>
        <Speed>90.94</Speed>
        <Address>Üsküdar, Ýstanbul, Türkiye</Address>
        <Building_x0020__x002F__x0020_Region />
      </dtVehicleStatus>
    </tblVehicleStatus>
  </diffgr:diffgram>
</DataSet>
_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Cevap