"Paul" <Cicak.c@gmail.comwrote in message
news:53c6f881-49be-4244-a58b-124d7094c847@v26g2000prm.googlegroups.com...
Quote:
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