asp.net webservice

Discussion in 'ASP General' started by Paul, Aug 13, 2008.

  1. Paul

    Paul Guest

    Hi, i need help accessing a webservice the return values of a
    webservice created in vb.net. The webservice accepts a string
    studentid and returns a class containg the info of the student. im am
    able to send the parameter using
    Server.CreateObject("Msxml2.ServerXMLHTTP"). How do i retrieve the
    values back passed from server?

    this is part of the web servce..

    POST /ws/service.asmx HTTP/1.1
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
    schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    ......
    </mtdSendData>
    </soap:Body>
    </soap:Envelope>


    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
    instance"
    .....
    <ConfirmResult>
    <ReturnGrade>string</ReturnGrade>
    <ReturnPass>string</ReturnPass>
    <ReturnSection>string</ReturnSection>
    <ConfirmResult>
    Paul, Aug 13, 2008
    #1
    1. Advertising

  2. "Paul" <> wrote in message
    news:...
    > Hi, i need help accessing a webservice the return values of a
    > webservice created in vb.net. The webservice accepts a string
    > studentid and returns a class containg the info of the student. im am
    > able to send the parameter using
    > Server.CreateObject("Msxml2.ServerXMLHTTP"). How do i retrieve the
    > values back passed from server?
    >
    > this is part of the web servce..
    >
    > POST /ws/service.asmx HTTP/1.1
    > <?xml version="1.0" encoding="utf-8"?>
    > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
    > schemas.xmlsoap.org/soap/envelope/">
    > <soap:Body>
    > ......
    > </mtdSendData>
    > </soap:Body>
    > </soap:Envelope>
    >
    >
    > HTTP/1.1 200 OK
    > Content-Type: text/xml; charset=utf-8
    > Content-Length: length
    > <?xml version="1.0" encoding="utf-8"?>
    > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
    > instance"
    > ....
    > <ConfirmResult>
    > <ReturnGrade>string</ReturnGrade>
    > <ReturnPass>string</ReturnPass>
    > <ReturnSection>string</ReturnSection>
    > <ConfirmResult>


    Dim returnGrade

    returnGrade =
    xhr.ResponseXML.SelectSingleNode("/*/ConfirmResult/ReturnGrade").Text



    --
    Anthony Jones - MVP ASP/ASP.NET
    Anthony Jones, Aug 13, 2008
    #2
    1. Advertising

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. batista
    Replies:
    1
    Views:
    898
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    553
    batista
    Jan 26, 2006
  3. Andrea Raimondi
    Replies:
    1
    Views:
    431
  4. Mr. x
    Replies:
    2
    Views:
    704
    Andrew
    Oct 10, 2003
  5. Cyril
    Replies:
    2
    Views:
    4,487
    Cyril
    Jun 1, 2006
Loading...

Share This Page