Hi Sahil

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

Cheers
Saravanakumar

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

Hi,

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
Sahil
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to