Author: bscott3125 | Posted on: 10/23/2008 12:02:58 PM | Views : 286

First I must say, this is for a C# console app that interacts with my website.....but the question is .NET specific either way.
In my "main" method I make a DB query and start looping through the results. While looping through the results I make a call to the following method:
private static StringBuilder XMLRequestPeg(String brandCode, String propertyID, int daysOut)
{
    // SETUP SOME VARIABLES
    StringBuilder theResponseData = new StringBuilder(1024);

    // GENERATE UNIQUE TOKEN FOR REQUEST
    string uniqueToken = System.Guid.NewGuid().ToString();

    // QUERY FOR XML DATA
    String theURI = ConfigurationSettings.AppSettings["PegXMLURL"].ToString();
    string theDataToPost = "MYDATA TO POST HERE";

    WebRequest theRequest;
    WebR ...

Go to the complete details ...