Newbie question

Discussion in 'ASP .Net Web Services' started by Bob, Apr 19, 2006.

  1. Bob

    Bob Guest

    I got a mandate from a shop that is using ASP - not ASP.NET - I need to do
    the following.
    From a client page take the data shown on the page and send it to a server
    URL as a well formed XML Post request. Wait for the response and when it
    arrives (it should arrive as an XML response) check a field called status
    (which should be 0, if its not it indicates an error at the server). If the
    field status value is 0 then show the data. I'm looking for sample code to
    do that in ASP.

    The request that is documented by the server folks is as follows.
    <?xml version="1.0" ?>

    <!DOCTYPE DCListRequest [

    <!ELEMENT DCListRequest EMPTY>

    ]>



    <DCListRequest></DCListRequest>



    The typical Response received would be, again according to the docs as



    <?xml version="1.0" ?>

    <!DOCTYPE DCListResponse [

    <!ELEMENT DCListResponse (DCItem+)>

    <!ATTLIST DCListResponse StatusCode CDATA #REQUIRED>

    <!ATTLIST DCListResponse StatusMessage CDATA #IMPLIED>

    <!ELEMENT DCItem (DCID, DCDesc)>

    <!ELEMENT DCID (#PCDATA)>

    <!ELEMENT DCDesc (#PCDATA)>

    ]>



    <DCListResponse StatusCode="0">

    <DCItem>

    <DCID>1</DCID>

    <DCDesc>Albany</DCDesc>

    </DCItem>

    <DCItem>

    <DCID>2</DCID>

    <DCDesc>Albuquerque</DCDesc>

    </DCItem>

    <DCItem>

    <DCID>3</DCID>

    <DCDesc>Altoona</DCDesc>

    </DCItem>

    <DCItem>

    <DCID>78</DCID>

    <DCDesc>Anchorage</DCDesc>

    </DCItem>

    </DCListResponse>



    How do I use this in a asp page?



    A simple sample or a link to a simple sample would be really appreciated,



    Bob
     
    Bob, Apr 19, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jenny

    dotnet newbie question

    Jenny, Jul 13, 2003, in forum: ASP .Net
    Replies:
    9
    Views:
    1,388
    K_Lee
    Nov 6, 2003
  2. Alan S.

    Re: A newbie .NET question

    Alan S., Sep 4, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    982
    Jerry Dennany
    Sep 26, 2003
  3. Id0x
    Replies:
    4
    Views:
    1,445
    Erik Max Francis
    Jul 21, 2003
  4. cjl
    Replies:
    3
    Views:
    1,155
    John Nagle
    May 21, 2007
  5. JohnE

    newbie with newbie questions

    JohnE, Aug 17, 2009, in forum: ASP .Net
    Replies:
    3
    Views:
    766
    Gregory A. Beamer
    Aug 17, 2009
  6. Jerry C.
    Replies:
    8
    Views:
    576
    Uri Guttman
    Nov 23, 2003
  7. moonhkt
    Replies:
    2
    Views:
    350
    Chris Angelico
    Sep 16, 2012
  8. Dennis Lee Bieber

    Re: Newbie to python. Very newbie question

    Dennis Lee Bieber, Apr 7, 2013, in forum: Python
    Replies:
    1
    Views:
    155
    Miki Tebeka
    Apr 8, 2013
Loading...