i need help to know how can i post XML to XML web service url, it should be easy for someone who worked with XML web services:

I need to post this sample xml data:

<?xml version="1.0" encoding="ISO-8859-1"?>
<CatalogRequest xml:lang="en-US">

after posting i would like to receive the data and save it to xml file, it would contain hunders of records.

Please i need help with a code to work on VB.NET 2005 application.

here is all i have about this xml web services any help would be approciated to have a code/function that i can use to get and download/save the xml response Thanks:

Download the catalog

To download the catalog, you must form an XML CatalogRequest and send it to your cobranded site's XML URL. This URL can be found on the 'Site Setup' tab under the 'General' sub tab. The XML URL will look similar to the following URL:


Where 'xxxxxxxxxxxxxxxx' is the cobranded site's numeric ID. The specification for CatalogRequest is documented in the next section in Table 1: CatalogRequest Specification. Below is a sample CatalogRequest:

<?xml version="1.0" encoding="ISO-8859-1"?>
<CatalogRequest xml:lang="en-US">
<LastUpdated>2005-09-21 06:00:00</LastUpdated>

In the above example our XML password is 'myxmlpassword'. We also only want items that have been added or updated since 6:00am on 9/21/2005.

Once the CatalogRequest has been sent to the server, it should respond with a CatalogResponse, which contains the actual catalog data.

Note: When sending your CatalogRequest to the XML URL, make sure you use a method that provides a valid User Agent string. If you are using CURL/PHP, you can use the following code to do this:

curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");

where $ch is your CURL session handle.

Storing the data

Once you have received a CatalogResponse, you will need to save the data to a local database. The procedure for doing this will vary depending on the scripting language or application you are using to download the feed.

You will also need to save the value of 'LastUpdated' from CatalogResponse/CatalogInfo, as this will allow you to retrieve incremental updates for subsequent CatalogRequests as opposed to the entire catalog.

Note that a CatalogResponse may contain items that already exist in your database, as some items may have been changed or updated since your last CatalogRequest.