Hi Udhay, I usually send JSON instead of XML since it doesn’t have the same namespace issues. Also the values need to be updated with actual values instead of the generated examples.
I think the normal way to use ESR is through the UI, so there could be more server functionality involved than just the REST API. Keong From: udhayachandran.m via lists.onap.org [mailto:[email protected]] Sent: Wednesday, 13 March 2019 01:10 To: Keong Lim <[email protected]>; [email protected] Subject: Re: [onap-discuss] Unable to test schema change in AAI - Master branch #aai Thanks for the clarification Keong. I tried the PUT request for VNFM with following payload, and got some invalid response. https://127.0.0.1:8443/aai/v11/external-system/esr-vnfm-list/esr-vnfm/example-vnfm-id-val-12209 Payload: <esr-vnfm> <vnfm-id>example-vnfm-id-val-12209</vnfm-id> <vim-id>example-vim-id-val-50716</vim-id> <certificate-url>example-certificate-url-val-48641</certificate-url> <esr-system-info-list> <esr-system-info> <esr-system-info-id>example-esr-system-info-id-val-81837</esr-system-info-id> <system-name>example-system-name-val-83252</system-name> <type>example-type-val-70245</type> <vendor>example-vendor-val-34830</vendor> <version>example-version-val-65138</version> <service-url>example-service-url-val-31405</service-url> <user-name>example-user-name-val-95992</user-name> <password>example-password-val-6018</password> <system-type>example-system-type-val-23120</system-type> <protocol>example-protocol-val-78602</protocol> <ssl-cacert>example-ssl-cacert-val-54710</ssl-cacert> <ssl-insecure>true</ssl-insecure> <ip-address>example-ip-address-val-3774</ip-address> <port>example-port-val-36684</port> <cloud-domain>example-cloud-domain-val-24329</cloud-domain> <default-tenant>example-default-tenant-val-92777</default-tenant> <passive>true</passive> <remote-path>example-remotepath-val-66248</remote-path> <system-status>example-system-status-val-56624</system-status> </esr-system-info> </esr-system-info-list> </esr-vnfm> Response: SVC3000 Invalid input performing %1 on %2 (msg=%3) (ec=%4) PUT v11/external-system/esr-vnfm-list/esr-vnfm/example-vnfm-id-val-12209 Unknown XML namespace used in payload: <esr-vnfm> <vnfm-id>example-vnfm-id-val-12209</vnfm-id> <vim-id>example-vim-id-val-50716</vim-id> <certificate-url>example-certificate-url-val-48641</certificate-url> <esr-system-info-list> <esr-system-info> <esr-system-info-id>example-esr-system-info-id-val-81837</esr-system-info-id> <system-name>example-system-name-val-83252</system-name> <type>example-type-val-70245</type> <vendor>example-vendor-val-34830</vendor> <version>example-version-val-65138</version> <service-url>example-service-url-val-31405</service-url> <user-name>example-user-name-val-95992</user-name> <password>example-password-val-6018</password> <system-type>example-system-type-val-23120</system-type> <protocol>example-protocol-val-78602</protocol> <ssl-cacert>example-ssl-cacert-val-54710</ssl-cacert> <ssl-insecure>true</ssl-insecure> <ip-address>example-ip-address-val-3774</ip-address> <port>example-port-val-36684</port> <cloud-domain>example-cloud-domain-val-24329</cloud-domain> <default-tenant>example-default-tenant-val-92777</default-tenant> <passive>true</passive> <remote-path>example-remotepath-val-66248</remote-path> <system-status>example-system-status-val-56624</system-status> </esr-system-info> </esr-system-info-list> </esr-vnfm> ERR.5.6.3011 Regards, Udhay -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15998): https://lists.onap.org/g/onap-discuss/message/15998 Mute This Topic: https://lists.onap.org/mt/30296097/21656 Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
