[yangtools-dev] Using anyxml in rpc input

Saravanakumar Murugesan <SMurugesan@...>

Hi Sahil


You can define input as string and format it as Json in your RPC impl. Anyxml is not supported yet.





From: yangtools-dev-bounces@... [mailto:yangtools-dev-bounces@...] On Behalf Of Sahil Shah
Sent: 15 March 2017 17:26
To: yangtools-users@...; yang-push-dev@...; yangtools-dev@...; controller-dev@...; controller-users@...
Subject: [yangtools-dev] Using anyxml in rpc input




I want to use anyxml in the rpc input to receive xml file from the user. The file contents will be dynamic everytime.


I tried using it as in input in yang as follows:


rpc getinputXml {


input {

  anyxml assignment-rules;





The Input builder generated is not having any method to get the xml data passed by the user.


Can you suggest any approach to realize this scenario or any modification to the above one ?


Thanks and Regards