accepting xml response....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • libish
    New Member
    • Oct 2008
    • 42

    accepting xml response....

    hi all..
    i'm requesting a server response... through http request..
    what i'm getting back will be an xml page.. can any one help me to accept this..?
    whn i searched , what i got is a code like this...

    if (String.Compare (this.Request.C ontentType, "text/xml", true) != 0)
    {
    throw new ApplicationExce ption("Invalid content type specified");
    }

    Response.Clear( );
    Response.Conten tType = "text/xml";
    System.Xml.XmlD ocument oRespDoc = prepareResponse Document(strNam e);
    Response.Write( oRespDoc.InnerX ml);
    this.Response.E nd();


    but Response cant be found in the context...
    can any one help me ....
    the code is in c# and i'm developing it for windows mobile...
    Last edited by libish; Oct 17 '08, 12:41 PM. Reason: missing content
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Moved to XML.

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      Not sure, but do you need to add "this." in front of all Response variable uses?

      The code seems inconsistent in that respect.

      Comment

      Working...