xml-responses.js 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 'use strict';
  2. const createdPartyRegistration1Xml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
  3. <ns2:oadrSignedObject>
  4. <ns2:oadrCreatedPartyRegistration ns3:schemaVersion="2.0b">
  5. <ns3:eiResponse>
  6. <ns3:responseCode>200</ns3:responseCode>
  7. <ns3:responseDescription>OK</ns3:responseDescription>
  8. <ns4:requestID>4323</ns4:requestID>
  9. </ns3:eiResponse>
  10. <ns3:registrationID>3bd3c02dc6965c8b9240</ns3:registrationID>
  11. <ns3:venID>3f59d85fbdf3997dbeb1</ns3:venID>
  12. <ns3:vtnID>VTN_ID1</ns3:vtnID>
  13. <ns2:oadrProfiles>
  14. <ns2:oadrProfile>
  15. <ns2:oadrProfileName>2.0b</ns2:oadrProfileName>
  16. <ns2:oadrTransports>
  17. <ns2:oadrTransport>
  18. <ns2:oadrTransportName>simpleHttp</ns2:oadrTransportName>
  19. </ns2:oadrTransport>
  20. </ns2:oadrTransports>
  21. </ns2:oadrProfile>
  22. </ns2:oadrProfiles>
  23. <ns2:oadrRequestedOadrPollFreq>
  24. <ns5:duration>PT10S</ns5:duration>
  25. </ns2:oadrRequestedOadrPollFreq>
  26. </ns2:oadrCreatedPartyRegistration>
  27. </ns2:oadrSignedObject>
  28. </ns2:oadrPayload>`;
  29. const canceledPartyRegistration1Xml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
  30. <ns2:oadrSignedObject>
  31. <ns2:oadrCanceledPartyRegistration ns3:schemaVersion="2.0b">
  32. <ns3:eiResponse>
  33. <ns3:responseCode>200</ns3:responseCode>
  34. <ns3:responseDescription>OK</ns3:responseDescription>
  35. <ns4:requestID>4323</ns4:requestID>
  36. </ns3:eiResponse>
  37. <ns3:registrationID>3bd3c02dc6965c8b9240</ns3:registrationID>
  38. <ns3:venID>3f59d85fbdf3997dbeb1</ns3:venID>
  39. </ns2:oadrCanceledPartyRegistration>
  40. </ns2:oadrSignedObject>
  41. </ns2:oadrPayload>`;
  42. module.exports = {
  43. canceledPartyRegistration1Xml,
  44. createdPartyRegistration1Xml,
  45. };