Connecting Tech Pros Worldwide Help | Site Map

asp.net webservice

  #1  
Old August 13th, 2008, 03:15 AM
Paul
Guest
 
Posts: n/a
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>
  #2  
Old August 13th, 2008, 12:25 PM
Anthony Jones
Guest
 
Posts: n/a

re: asp.net webservice


"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


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
network printing through asp.net webservice ketanp answers 2 February 24th, 2008 04:47 PM
ASP.NET webservice & Javascript Karl answers 3 December 31st, 2005 02:15 PM
asp.net webservice Mike answers 2 November 21st, 2005 09:33 AM
howto get exception information from asp.net webservice, without try and catch dan answers 2 November 19th, 2005 12:23 PM
asp.net webservice in c++ with unmanaged c++ Kristof Thys via .NET 247 answers 0 November 17th, 2005 03:16 PM