Question about carrying data in an <ok> response
Hi,
I'm part of a research group as PhD candidate in which we use libnetconf2 as a NETCONF implementation for SDN virtual environments. We are in the early stages of the architecture design for our new research, and we find very convenient to return data inside an
Reading the standard, its says:
The
<ok>element is sent in<rpc-reply>messages if no errors or warnings occurred during the processing of an<rpc>request, and no data was returned from the operation.
The point of standardization is interoperability. What do you hope to achieve by redefining the <ok/> response to encapsulate additional data? Presumably, nobody else but your SW would understand that.
Are you aware there are basically 3 kinds of <rpc-reply> contents? It can succeed, when it returns just <ok/> or directly the output elements of the operation (called data reply) or fail when there is <rpc-error> element with more details. It seems to me you want to use the data reply.