Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 20, 2012 12:21 PM by panesofglass
Member
23 Points
92 Posts
Dec 20, 2012 05:48 AM|LINK
Hi:
I meet a problem about using webservice; I hope to use web service via program, not add reference;
The situation is I have a file like test.aspx, and of course, it has test.aspx.cs; I hope to use web service
via code behind, but not adding reference(through project setting); And my location of web service is
http://localhost/Administration/WS/test.asmx; How to make that, Thanks a lot.
Participant
1620 Points
321 Posts
Dec 20, 2012 05:57 AM|LINK
In your case,you could go for the web API rather than the web service
check it out
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
Dec 20, 2012 07:34 AM|LINK
I still need to use web service, thanks a lot.
758 Points
242 Posts
Dec 20, 2012 12:21 PM|LINK
Try http://www.asp.net/ajaxlibrary/HOW%20TO%20Call%20ASMX%20Web%20Services.ashx or http://www.codeproject.com/Articles/1231/ASP-NET-Web-Service
abramhum.c.l
Member
23 Points
92 Posts
Call Webservice directly
Dec 20, 2012 05:48 AM|LINK
Hi:
I meet a problem about using webservice; I hope to use web service via program, not add reference;
The situation is I have a file like test.aspx, and of course, it has test.aspx.cs; I hope to use web service
via code behind, but not adding reference(through project setting); And my location of web service is
http://localhost/Administration/WS/test.asmx; How to make that, Thanks a lot.
shanmugamm
Participant
1620 Points
321 Posts
Re: Call Webservice directly
Dec 20, 2012 05:57 AM|LINK
In your case,you could go for the web API rather than the web service
check it out
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
http://shanmugam-netguru.blogspot.com
Follow me in Linkedin
abramhum.c.l
Member
23 Points
92 Posts
Re: Call Webservice directly
Dec 20, 2012 07:34 AM|LINK
I still need to use web service, thanks a lot.
panesofglass
Participant
758 Points
242 Posts
Re: Call Webservice directly
Dec 20, 2012 12:21 PM|LINK
Try http://www.asp.net/ajaxlibrary/HOW%20TO%20Call%20ASMX%20Web%20Services.ashx or http://www.codeproject.com/Articles/1231/ASP-NET-Web-Service