c# - Unable to get service reference when uploaded to main website server -


i new web services , own domain , server test web-apps live. tried create web-service normal addition operation. running fine on localhost published web-server, , accessed using "add service reference" in visual studio 2012 http://www.mydomain.com/requestserver/webservice.asmx gave me resource not found error

the requestserver folder @ webserver contains web-service. want know that:

  1. what server settings should done access web-service?
  2. what correct way access web-service?

please tell me missing important step?

for wcf in 2010 , iis 7,

you need set servicemetadata tag, located in following hierarchy of web.config:

<system.servicemodel>   <behaviors>     <servicebehaviors>       <behavior>         <servicemetadata httpgetenabled="true"/> 

this enable meta data publishing, allows service reference feature work.

i assume same in 2012 , whatever build of iis using.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -