Hi Sohani, How will it look like if we expand the array item in the "input" window? I guess it will expand and show the attribute and the value. If that is the case, we can allow them to map attributes also. WDYT?
On Tue, May 17, 2016 at 3:34 PM, Sohani Weerasinghe <soh...@wso2.com> wrote: > Hi Viraj, > > If we consider an xml as below ( primitive array), the tree view will be > as follows > > <person> > <firstName>susinda</firstName> > <phone>0112655655</phone> > <phone>0112655655</phone> > </person> > > > What if, there is an attribute for the 'phone' as below? > > <person> > <firstName>susinda</firstName> > <phone primary="true" >0112655655</phone> > <phone primary="true">0112655655</phone> > </person> > > Are we going to allow users to map both phone and the attribute? > > > > > Sohani Weerasinghe > Software Engineer > WSO2, Inc: http://wso2.com > > Mobile : +94 716439774 > Blog :http://christinetechtips.blogspot.com/ > Twitter : https://twitter.com/sohanichristine > > On Tue, May 17, 2016 at 3:30 PM, Sohani Weerasinghe <soh...@wso2.com> > wrote: > >> Hi All, >> >> With the current level of the implementation of visual datamapper >> editor, all nodes of the json schema except the root node can be mapped to >> the nodes of another json schema. >> >> As per the offline discussion we had, we are going to allow users only to >> map the leaf nodes of the tree and based on the discussions, the tree view >> will be as follows >> >> <?xml version="1.0" encoding="UTF-8"?> >> <soapenv:Envelope xmlns:soapenv=" >> http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn: >> enterprise.soap.sforce.com" xmlns:urn1="urn: >> sobject.enterprise.soap.sforce.com" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance"> >> <soapenv:Header> >> <urn:SessionHeader> >> <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId> >> </urn:SessionHeader> >> </soapenv:Header> >> <soapenv:Body> >> <urn:create> >> <urn:sObjects xsi:type="urn1:Contact"> >> <!--Zero or more repetitions:--> >> <!--You may enter ANY elements at this point--> >> <AccountId>001D000000HRzKD</AccountId> >> <FirstName>Jane</FirstName> >> <LastName>Doe</LastName> >> </urn:sObjects> >> <urn:sObjects xsi:type="urn1:Account"> >> <Name>Acme Rockets, Inc.</Name> >> </urn:sObjects> >> </urn:create> >> </soapenv:Body> >> </soapenv:Envelope> >> >> >> >> Thanks, >> Sohani >> >> >> Sohani Weerasinghe >> Software Engineer >> WSO2, Inc: http://wso2.com >> >> Mobile : +94 716439774 >> Blog :http://christinetechtips.blogspot.com/ >> Twitter : https://twitter.com/sohanichristine >> > > -- Thank you and Best Regards, Chanaka Fernando Senior Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev