Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   asp.net webservice (http://www.velocityreviews.com/forums/t804409-asp-net-webservice.html)

Paul 08-13-2008 02:06 AM

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.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>

Anthony Jones 08-13-2008 11:01 AM

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




All times are GMT. The time now is 06:44 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.