vw-carnet
Version:
Node package to connect to VW Carnet SOAP service
50 lines • 2.56 kB
text/xml
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://ns.hughestelematics.com/Gateway/service/PreTripClimatisationService" xmlns:v1="http://xmlns.hughestelematics.com/Gateway/PreTripClimatisation/V1"
xmlns:hv1="http://xmlns.hughestelematics.com/Gateway/Common/Header/V1">
<env:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext">
<wsse:UsernameToken xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility" wsu:Id="sample">
<wsse:Username>{{sessionKey}}</wsse:Username>
</wsse:UsernameToken>
</wsse:Security>
</env:Header>
<env:Body>
<ser:ConfigurePreTripClimatisation>
<v1:PreTripClimatisationConfig>
<v1:Data>
<v1:VIN>{{VIN}}</v1:VIN>
<v1:AccountId>{{AccountID}}</v1:AccountId>
<v1:TCUID>{{TCUID}}</v1:TCUID>
<!-- tartRpc/stopRpc/startWindowHeating/stopWindowHeating/setRpc-->
<v1:requestType>{{requestType}}</v1:requestType>
<!-- if requestType=setRpc-->
<v1:climatisationSettings>
<!-- 0/1 -->
<v1:windowHeatingRear>{{windowHeatingRear}}</v1:windowHeatingRear>
<!-- 0/1 -->
<v1:windowHeatingFront>{{windowHeatingFront}}</v1:windowHeatingFront>
<v1:climatisationFollowupTime>30</v1:climatisationFollowupTime>
<v1:climatisationFollowupTimeBattery>10</v1:climatisationFollowupTimeBattery>
<!-- true/false -->
<v1:climatisationWithoutHVPower>{{climatisationWithoutHVPower}}</v1:climatisationWithoutHVPower>
<v1:climatisationDuration>0</v1:climatisationDuration>
<v1:targetTemperature>
<!-- (Kelvin * 10) + 5 -->
<v1:measurementValue>{{targetTemperature}}</v1:measurementValue>
<v1:measurementState>valid</v1:measurementState>
</v1:targetTemperature>
</v1:climatisationSettings>
</v1:Data>
<v1:Header>
<hv1:SourceName>{sourceName}</hv1:SourceName>
<hv1:Organization>{organization}</hv1:Organization>
<hv1:TransactionId>{transactionID}</hv1:TransactionId>
<hv1:Region>{region}</hv1:Region>
<hv1:Timestamp>{timestamp}</hv1:Timestamp>
<hv1:TargetName>{targetName}</hv1:TargetName>
<hv1:ApplicationName>{applicationName}</hv1:ApplicationName>
</v1:Header>
</v1:PreTripClimatisationConfig>
</ser:ConfigurePreTripClimatisation>
</env:Body>
</env:Envelope>