asp.net mvc - Consume ASMX from MVC app -


i have legacy asmx service (which have never worked them). want consume mvc application.

first add service reference following wsdl http://thisisanexample.com:1928/wstest/service.asmx?wsdl. service generated classes:

  • request , response classes each method
  • servicesoap interface
  • servicesoapchannel interface
  • servicesoapclient partial class

i have been trying consume service servicesoapclient like

servicesoapclient client = new servicesoapclient(); // or servicesoap client = new     servicesoapclient(); client.methodname(); 

however using client seems not work because doesn´t compile. edit: compile when write client. does't show operation use..

how can consume asmx web service?

thanks!


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -