1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
<oadr:oadrCreatedPartyRegistration ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
<ei:eiResponse>
<ei:responseCode>{{ response.response_code }}</ei:responseCode>
<ei:responseDescription>{{ response.response_description }}</ei:responseDescription>
<requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ response.request_id }}</requestID>
</ei:eiResponse>
{% if registration_id is defined and registration_id is not none %}
<ei:registrationID>{{ registration_id }}</ei:registrationID>
{% else %}
<ei:registrationID />
{% endif %}
{% if ven_id is defined and ven_id is not none %}
<ei:venID>{{ ven_id }}</ei:venID>
{% else %}
<ei:venID />
{% endif %}
<ei:vtnID>{{ vtn_id }}</ei:vtnID>
<oadr:oadrProfiles>
{% for profile in profiles %}
<oadr:oadrProfile>
<oadr:oadrProfileName>{{ profile.profile_name }}</oadr:oadrProfileName>
<oadr:oadrTransports>
{% for transport in profile.transports %}
<oadr:oadrTransport>
<oadr:oadrTransportName>{{ transport.transport_name }}</oadr:oadrTransportName>
</oadr:oadrTransport>
{% endfor %}
</oadr:oadrTransports>
</oadr:oadrProfile>
{% endfor %}
</oadr:oadrProfiles>
{% if requested_oadr_poll_freq is defined and requested_oadr_poll_freq is not none %}
<oadr:oadrRequestedOadrPollFreq>
<duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">{{ requested_oadr_poll_freq|timedeltaformat }}</duration>
</oadr:oadrRequestedOadrPollFreq>
{% endif %}
</oadr:oadrCreatedPartyRegistration>
</oadr:oadrSignedObject>
|