Hi Keong, Thanks for your detailed explanation. I was able to follow the Wiki page and everything worked as per your document.
However, when I tried to move the NewWidget under "cloud-infrastructure" failed. This is due to the namespace attribute as you mentioned. After fixing the below property everything went fine. Now, i got the basic understating of OXM object type definitions. *<xml-property name="namespace" value="cloud-infrastructure" />* Once again thanks a lot for your timely support and i really appreciate it. Thanks & Regards Vivek On Thu, Jul 18, 2019 at 7:22 AM Keong Lim <[email protected]> wrote: > Hi Vivek, > > Glad to hear your setup has been successful. > > In the schema change tutorial > https://wiki.onap.org/display/DW/AAI+Tutorial-Making+and+Testing+a+Schema+Change+-+Dublin > > Everything hinges on the OXM definitions that you put in. If you are not > following the tutorial to the letter, then please attach your modified OXM > file, so we can follow along. > > Were you able to follow the tutorial as written all the way to a > successful conclusion, before making your extra changes? > > I guess you are at step 19 now, which adds the "NewWidgets" to the > "Network" namespace, but in your case, you modified the step to add it to > the "CloudInfrastructure" namespace instead. > > To accompany this change, step 21 also needs to be modified where: > > <xml-property name="namespace" value="network" /> > > becomes > > <xml-property name="namespace" value="cloud-infrastructure" /> > > Please note that in the "NewWidget" definition as written: > > <xml-element java-attribute="newWidgetName" name="new-widget-name" > required="true" type="java.lang.String" xml-key="true"> > > the "new-widget-name" is the unique key of the object, so this forms part > of the URL path as well as the payload of the PUT request. > > Your first PUT request got the error: > > <variable>Invalid input performing %1 on %2:uri and payload keys don't > match</variable> > > because the payload had this: > > <new-widget-name>example-new-widget-name-val-43832</new-widget-name> > > but your URL path had this: > > > <variable>v16/cloud-infrastructure/new-widgets/new-widget/example-new-widget-id-val-51753</variable> > > Attempting to use the "new-widget-id" attribute as the unique key instead > of the "new-widget-name" results in this error. > Please check step 28 in the Postman PUT URL. > > The Resources Java process error confirms this confusion: > > 2019-07-17 16:59:41.801 ERROR 6190 --- [qtp798393859-39] > org.onap.aai.logging.ErrorLogHelper : uri and payload keys don't match > ex=org.onap.aai.exceptions.AAIException: uri and payload keys don't match > > > In your second curl command, using the "new-widget-name" value in the URL > also gives the same error as before, so now I suspect that your steps 20/21 > definitions of "NewWidgets" and "NewWidget" have diverged further from the > tutorial steps. > > Please send your OXM definitions as well, so we can check them over. > > Thanks, > Keong > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18177): https://lists.onap.org/g/onap-discuss/message/18177 Mute This Topic: https://lists.onap.org/mt/32488645/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
