Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

How to call a web method using http get/post?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mehdi_mousavi - 02 May 2005 10:42 GMT
Hi folks,
Is there anyway to call a web method over an HTTP protocol using the
GET/POST methods (without using the SOAP protocol)???

Any help would be highly appreciated,

Cheers,
Mehdi
Jonas Knaus - 02 May 2005 11:32 GMT
its possible by jusing JavaScript

i guess something likt his should work: (not tested...)

function JavaScriptService()
{
service.useService("http//localhost......");
callOpt = service.createCallotions();
callOpt.async = false;
callOpt.funcName = "JavaScriptService";

and so on....

then...

<form method="post">
<input type="submit"  onClick="JavaScriptService() return(false);

<div id="service" style="behavior:url(webservice.htc)"/>

</form>

jonas

> Hi folks,
> Is there anyway to call a web method over an HTTP protocol using the
[quoted text clipped - 4 lines]
> Cheers,
> Mehdi
mehdi_mousavi - 02 May 2005 11:51 GMT
Oh! Consider a URL indicated in the submit tag of an "VXML". e.g.,

<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
 <form id="3">
   <var name="a" expr="5"/>
   <var name="b" expr="5"/>
   <if cond="a==b">
       <submit next="http://myserver/myservice/service1.asmx/Method1"
method="post"/>
   </if>
 </form>
</vxml>

I just thought that to invoke the Method1 of myservice webservice, I
have to call the following URL, using the post method:

http://myserver/myservice/service1.asmx/Method1

however, this did not work and Method1 is not called either.

Any idea?

Thanks
Mehdi
Yunus Emre ALPÖZEN [MCAD.NET] - 02 May 2005 18:56 GMT
Checkout this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conAccessingWebServicesFromBrowser.asp


Signature

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

> Hi folks,
> Is there anyway to call a web method over an HTTP protocol using the
[quoted text clipped - 4 lines]
> Cheers,
> Mehdi
mehdi_mousavi - 03 May 2005 06:37 GMT
Thanks a lot; the problem is solved. However, the problem actually was
not how to call a web method over HTTP GET/POST. It was how to enable
HTTP GET/POST methods for a web service on .NET Framework 1.1 since the
mentioned protocols have been disabled by default on the mentioned
framework version.

Thanks
Mehdi

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.