Snippets

OICP 2.1 Pull EVSE Status by ID | XML

You are viewing an old version of this snippet. View the current version.
Revised by Gregor Schermuly c19c121
The PullEvseStausById request can be used as an alternative to the PullEvseStaus request. In contrast to this request, it expects a list of EVSE Ids as input and will return a list of key value pairs having the EVSE Id as key and the current EVSE status as value. Unknown EVSE Ids will have the status EVSENotFound. A maximum of 100 EVSE Ids can be send per request. Concurrent requests are possible.
<soapenv:Envelope xmlns:soapenv    = "http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:EVSEStatus = "http://www.hubject.com/b2b/services/evsestatus/v2.0">

   <soapenv:Header/>

   <soapenv:Body>
      <EVSEStatus:eRoamingPullEvseStatusById>

         <EVSEStatus:ProviderID>DE*GDF</EVSEStatus:ProviderID>

         <!--1 to 100 repetitions:-->
         <EVSEStatus:EvseId>DE*GEF*E123456789*1</EVSEStatus:EvseId>
         <EVSEStatus:EvseId>DE*GEF*E123456789*2</EVSEStatus:EvseId>

      </EVSEStatus:eRoamingPullEvseStatusById>
   </soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv     = "http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:EVSEStatus  = "http://www.hubject.com/b2b/services/evsestatus/v2.0"
                  xmlns:CommonTypes = "http://www.hubject.com/b2b/services/commontypes/v2.0">

   <soapenv:Header/>

   <soapenv:Body>
      <EVSEStatus:eRoamingEvseStatusById>

         <!--Optional:-->
         <EVSEStatus:EvseStatusRecords>

           <!--Zero or more repetitions:-->
           <EVSEStatus:EvseStatusRecord>
              <EVSEStatus:EvseId>DE*GEF*E123456789*1</EVSEStatus:EvseId>
              <EVSEStatus:EvseStatus>Available</EVSEStatus:EvseStatus>
           </EVSEStatus:EvseStatusRecord>

           <EVSEStatus:EvseStatusRecord>
              <EVSEStatus:EvseId>DE*GEF*E123456789*2</EVSEStatus:EvseId>
              <EVSEStatus:EvseStatus>Occupied</EVSEStatus:EvseStatus>
           </EVSEStatus:EvseStatusRecord>

         </EVSEStatus:EvseStatusRecords>

         <!--Optional:-->
         <EVSEStatus:StatusCode>

            <CommonTypes:Code>?</CommonTypes:Code>

            <!--Optional:-->
            <CommonTypes:Description>?</CommonTypes:Description>

            <!--Optional:-->
            <CommonTypes:AdditionalInfo>?</CommonTypes:AdditionalInfo>

         </EVSEStatus:StatusCode>

      </EVSEStatus:eRoamingEvseStatusById>
   </soapenv:Body>

</soapenv:Envelope>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.