How to set up basic WCF service - client application? -


i new wcf , try create first wcf service - client application. use visual studio 2010.

  1. i create wcf service application
  2. i try add service reference project. after pressing "discover", service occured. after clicking on or expanding, error occurs. tried fix config files, error messages changing.

what minimum configuration keep basic wcf service working?

server side configuration

 <services>   <service name="program01.testclass" behaviorconfiguration="testbehavior">     <endpoint address="" binding="basichttpbinding"         contract="contracts.icontract"/>      <host>       <baseaddresses>         <add baseaddress="http://localhost:9817/testservice"/>       </baseaddresses>     </host>   </service> </services> <behaviors>   <servicebehaviors>     <behavior name="testbehavior">       <servicedebug includeexceptiondetailinfaults="true"/>       <servicemetadata httpgetenabled="true"/>     </behavior>   </servicebehaviors> </behaviors> 

client side configuration

<client>   <endpoint address="http://localhost:9817/testservice" binding="basichttpbinding"     name="clientendpoint"    contract="contracts.icontract"/> </client> 

use channelfactory obtain proxy , invoke method. cheers :)-


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -