[NETCONF-72] RESTCONF rpc() input XML fails while json equivalent succeeds Created: 24/Sep/15 Updated: 15/Mar/19 Resolved: 15/Oct/15 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | James Gregory Hall | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 4353 |
| Description |
|
<input xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf"> Try POST : Switch to json: { "input": { "source" : { "running" : "" }} } Works! |
| Comments |
| Comment by James Gregory Hall [ 24/Sep/15 ] |
|
Version is release/lithium |
| Comment by Vratko Polak [ 01/Oct/15 ] |
|
First lines of ietf-netconf@2011-06-01.yang (either in master branch of netconf repository at opendaylight/netconf/models/ietf-netconf/src/main/yang/, or in stable/lithium branch of controller repository at opendaylight/netconf/ietf-netconf/src/main/yang/) look like this: module ietf-netconf { // the namespace for NETCONF XML definitions is unchanged In other words, is it possible that XML call fails because your namespace is wrong? It is not listed at http://www.iana.org/assignments/xml-registry/xml-registry.xhtml |
| Comment by James Gregory Hall [ 15/Oct/15 ] |
|
Thank you for pointing out my Layer 8 error |