Question What is the endpoint of the service I wrote and hosted in IIS?

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
Hi all, I am learning WCF and web services in general. I have done several tutorials successfully. I have this one that is being hosted by IIS. I am trying to write a client to consume the service but I can't seem to get the endpoint right. My web config is below. In my client what shoud the end point be? From IE I can successufully enter "http://localhost:8999/HelloWorld.svc" and get the page with links to the wsdl. Thanks

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="MyService.HelloWorldBehavior" name="MyService.HelloWorld">
<endpoint address="" binding="wsHttpBinding" contract="MyService.IHelloWorld" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8999/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyService.HelloWorldBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
 
Here's an example from a project I'm working on at the moment:
VB.NET:
  <system.serviceModel>
    <client>
      <endpoint name="AddressWCFConfiguration" address="http://localhost:52114/AddressService.svc" bindingConfiguration="dxWsBinding" binding="wsHttpBinding" contract="SI.Doh.Aon.Service.Interface.IAddressService" behaviorConfiguration="UserContextClientBehavior" />
 
Back
Top