hksoftware
Technical User
Hi,
I've seen 2 uses of XML. eBays example code sends this to the server:
<?xml version="1.0" encoding="utf-8"?>
<GetCategoriesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>value</eBayAuthToken>
</RequesterCredentials>
<DetailLevel>0</DetailLevel>
<Item>
<Site>0</Site>
</Item>
<ViewAllNodes>1</ViewAllNodes>
</GetCategoriesRequest>
And uses an xml file to store settings like so:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="DevID" value="INSERT_DEVID" />
<add key="AppID" value="INSERT_APPID" />
<add key="CertID" value="INSERT_CERTID" />
<add key="ServerUrl" value=" />
<add key="UserToken" value="INSERT_TOKEN" />
</appSettings>
</configuration>
These look like 2 different types of XML.
I'm making an app which checks online for a new version by downloading an XML file. Which of the above methods shall I use and why?
If someone could point me to an article which explains the 2 implementations that'd be great. Thanks!
I've seen 2 uses of XML. eBays example code sends this to the server:
<?xml version="1.0" encoding="utf-8"?>
<GetCategoriesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>value</eBayAuthToken>
</RequesterCredentials>
<DetailLevel>0</DetailLevel>
<Item>
<Site>0</Site>
</Item>
<ViewAllNodes>1</ViewAllNodes>
</GetCategoriesRequest>
And uses an xml file to store settings like so:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="DevID" value="INSERT_DEVID" />
<add key="AppID" value="INSERT_APPID" />
<add key="CertID" value="INSERT_CERTID" />
<add key="ServerUrl" value=" />
<add key="UserToken" value="INSERT_TOKEN" />
</appSettings>
</configuration>
These look like 2 different types of XML.
I'm making an app which checks online for a new version by downloading an XML file. Which of the above methods shall I use and why?
If someone could point me to an article which explains the 2 implementations that'd be great. Thanks!