asp.net webservice

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    asp.net webservice

    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.CreateOb ject("Msxml2.Se rverXMLHTTP"). 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:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns:soap="htt p://
    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:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-
    instance"
    .....
    <ConfirmResul t>
    <ReturnGrade>st ring</ReturnGrade>
    <ReturnPass>str ing</ReturnPass>
    <ReturnSection> string</ReturnSection>
    <ConfirmResul t>
  • Anthony Jones

    #2
    Re: asp.net webservice

    "Paul" <Cicak.c@gmail. comwrote in message
    news:53c6f881-49be-4244-a58b-124d7094c847@v2 6g2000prm.googl egroups.com...
    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.CreateOb ject("Msxml2.Se rverXMLHTTP"). 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:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns:soap="htt p://
    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:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-
    instance"
    ....
    <ConfirmResul t>
    <ReturnGrade>st ring</ReturnGrade>
    <ReturnPass>str ing</ReturnPass>
    <ReturnSection> string</ReturnSection>
    <ConfirmResul t>
    Dim returnGrade

    returnGrade =
    xhr.ResponseXML .SelectSingleNo de("/*/ConfirmResult/ReturnGrade").T ext



    --
    Anthony Jones - MVP ASP/ASP.NET


    Comment

    Working...