Answered by:
ASMX / vs OP= for web services

Question
-
User9952089 posted
Respected Community Members,
Is there a differece in calling the web service methods using / vs OP = ??
When i consume the weather public web service ., i can consume using URL.asmx/Methodname , but when i try to consume web service hosted on IIS , it require URL.asmx\OP= methodname.
Any idea?? i s there a settings in IIS to differentiate that or it just nature of web service hosting in IIS vs other web server??
Thanks,
Nick
Wednesday, June 26, 2013 9:10 AM
Answers
-
User260886948 posted
Hi,
ASMX web services use SOAP. SOAP requests use only POST to invoke methods. You will need to generate a proxy client in your aspx page to invoke the web service.
But for the WCF Rest services, it can use GET verbs to invoke web services. So the uri can be URL.asmx\OP= methodname.
Please try to the following article:
#WCF REST:
http://www.techbubbles.com/wcf/wcf-and-rest/.#Soap VS Rest:
http://stackoverflow.com/questions/209905/rest-and-soap .
#Similar thread:
http://stackoverflow.com/questions/2006828/possible-to-invoke-asmx-service-with-parameter-via-url-query-string .
Hope it can help you.
Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, June 26, 2013 11:16 PM
All replies
-
User-431249759 posted
Read on REST vs SOAP
Wednesday, June 26, 2013 9:37 AM -
User9952089 posted
Do you mean its Comunication Protocol difference??
Wednesday, June 26, 2013 2:00 PM -
User260886948 posted
Hi,
ASMX web services use SOAP. SOAP requests use only POST to invoke methods. You will need to generate a proxy client in your aspx page to invoke the web service.
But for the WCF Rest services, it can use GET verbs to invoke web services. So the uri can be URL.asmx\OP= methodname.
Please try to the following article:
#WCF REST:
http://www.techbubbles.com/wcf/wcf-and-rest/.#Soap VS Rest:
http://stackoverflow.com/questions/209905/rest-and-soap .
#Similar thread:
http://stackoverflow.com/questions/2006828/possible-to-invoke-asmx-service-with-parameter-via-url-query-string .
Hope it can help you.
Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, June 26, 2013 11:16 PM -
User-431249759 posted
Exactly!
Thursday, June 27, 2013 8:39 AM