asp.net mvc - mvc having issues consuming web service -


i created web service , published iis. consume web service mvc app. i'm trying call controller, added service reference mvc project, i'm not able create service1 object call web service.

i'm new web services , mvc. can see issues config files?

here config file web service:

  <system.servicemodel> <bindings>   <wshttpbinding>     <binding name="nosecurityplusrm">       <reliablesession enabled="true" />       <security mode="none" />     </binding>   </wshttpbinding> </bindings> <client>   <endpoint binding="wshttpbinding" bindingconfiguration="" contract="helloworldpracticeservice.iservice1"     name="service1endpoint" /> </client> <services>   <service name="helloworldpracticeservice.service1">     <endpoint address="" binding="wshttpbinding" bindingconfiguration="nosecurityplusrm"       contract="helloworldpracticeservice.iservice1" />     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />   </service> </services> <behaviors>   <servicebehaviors>     <behavior>       <!-- avoid disclosing metadata information, set values below false before deployment -->       <servicemetadata httpgetenabled="true" httpsgetenabled="true"/>       <!-- receive exception details in faults debugging purposes, set value below true.  set false before deployment avoid disclosing exception information -->       <servicedebug includeexceptiondetailinfaults="false"/>     </behavior>   </servicebehaviors> </behaviors> <protocolmapping>     <add binding="basichttpsbinding" scheme="https" /> </protocolmapping>     <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" /> 

here config file in client

    <system.servicemodel> <client>   <endpoint name="service1endpoint"             address="http://c-3po.ccf.ca.gov/helloworldpracticeservice/service1"             binding="wshttpbinding"             contract="iservice1"></endpoint> </client> <bindings>   <basichttpbinding>    </basichttpbinding>   <wshttpbinding>    </wshttpbinding> </bindings> 


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -