I don't have any sample code on hand; however, there must be plenty of resources online. Try looking googling AJAX (Asynchronous Javascript and XML) and <a href="http://ASP.NET">ASP.NET</a>. AJAX is a term which encompasses making HTTP requests in Javascript without refreshing the page. Here's a typical scenario :
<br><ul><li>the browser makes an HTTP POST or GET request to query the web service</li><li>the web service returns a response in the form of an XML string -- the XML does not have to use the SOAP format</li><li>the browser parses the response containing XML using a particular Javascript DOM implementation (which varies from browser to browser) and is then free to do whatever it wants with the data
</li></ul>I'm a Java guy and don't know much about <a href="http://ASP.NET">ASP.NET</a>, though I'm sure the paradigms used in .NET are similar to their Java counterparts. Here's a simple example with pseudo-code:<br><br>
// .NET code inside your main service method<br><br>string xml = "<person><first>John</first><last>Doe</last></person>";<br>Writer writer = response.getWriter();<br>writer.write
(xml);<br>writer.close();<br><br>// End<br><br>Now the Javascript code gets a bit lengthy so I'm not going to post it. However, the following URLs have plenty of code you can use to get started:<br><br><a href="http://www.w3schools.com/ajax/ajax_example.asp">
http://www.w3schools.com/ajax/ajax_example.asp</a><br><a href="http://www.w3schools.com/dom/dom_parser.asp">http://www.w3schools.com/dom/dom_parser.asp</a><br><br>Once you understand all that you can move on to using AJAX and .NET frameworks, which greatly simplify things. You could use frameworks to begin with, but IMO it's important to understand what the frameworks do under the hood before using them.
<br><br>Hope this helps...<br>-Nihal<br><br><div><span class="gmail_quote">On 6/24/06, <b class="gmail_sendername">David Smith</b> <<a href="mailto:smithd98@gmail.com">smithd98@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hello,<br><br>I'm wondering if anyone can provide some sample code to consume an <a href="http://asp.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asp.net</a> web service with javascript without using SOAP?
<br><br>Thanks!<br clear="all"><br>--dave <br>_________________
<br>David Smith<br><br>(517) 944-1872<br><a href="mailto:smithd98@msu.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">smithd98@msu.edu</a> <br>614 Theo<br>Lansing MI 48917
</div><br>_______________________________________________<br>linux-user mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user" target="_blank">
http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br><br><br></blockquote></div><br>