Hi All, I'm working on Google contacts connector. For create Contact method we need to set the request format as,
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005"> <atom:category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#contact"/> <atom:content type="text">$1</atom:content> <gd:name> <gd:givenName>$2</gd:givenName> <gd:familyName>$3</gd:familyName> <gd:fullName>$4</gd:fullName> </gd:name> <gd:email rel="http://schemas.google.com/g/2005#work" primary="true" address="$ctx:workEmail" displayName="E. Bennet"/> <gd:email rel="http://schemas.google.com/g/2005#home" address="$ctx:homeEmail"/> <gd:phoneNumber rel="http://schemas.google.com/g/2005#work" primary="true">$7</gd:phoneNumber> <gd:phoneNumber rel="http://schemas.google.com/g/2005#home">$8</gd:phoneNumber> <gd:structuredPostalAddress rel="http://schemas.google.com/g/2005#work" primary="true"> <gd:city>$9</gd:city> <gd:street>$10</gd:street> <gd:region>$11</gd:region> <gd:postcode>$12</gd:postcode> <gd:country>$13</gd:country> <gd:formattedAddress>$14</gd:formattedAddress> </gd:structuredPostalAddress> </atom:entry> Here some parameters are optional. If it is optional parameter and value is not set, it's not needed in the request. for example, givenName is optional and it's null, then request should be as, <gd:name> <gd:familyName>$3</gd:familyName> <gd:fullName>$4</gd:fullName> </gd:name> Here each element has name-space. How can I remove this kind of element from payload? Any guide on this? -- *Kalyani Yogeswaranathan* *Associate software engineer* *WSO2 Inc.* *Mobile: 0776390284*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev