Skip to content

Instantly share code, notes, and snippets.

@kgaughan
Created June 10, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgaughan/f4fe962e38ba0f691328e77578e873a2 to your computer and use it in GitHub Desktop.
Save kgaughan/f4fe962e38ba0f691328e77578e873a2 to your computer and use it in GitHub Desktop.
EPP mux envelope
<?xml version="1.0"?>
<mux xmlns="foo">
(<src>...</src>|<dest>...</dest>)
<p>
<epp xmlns="...">
...
</epp>
</p>
</mux>
@kgaughan
Copy link
Author

Me noodling how to multiplex EPP requests over a single connection in a way that doesn't cause a layering violation (Unlike the Verisign Namestore extension). It's not specific to EPP though.

The idea is that a client sends a request with <dest/> set to the destination server's ID, and the actual EPP XML document is put in the </p> (payload) element. In the response, the server includes the source server's ID in the <src/> element so the client can tell where it came from and so demux it.

This could be expanded with a status element, and possibly some kind of a service menu response (not dissimilar to the EPP greeting), keep-alive request, and an optional authentication mechanism. I'm not sure how useful an authentication mechanism would be, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment