1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <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>simpleHttp</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>
|