0

My web service tests fine on localhost - so off to the real deal! Can someone help me make sense of the things I need to check and set. I want to know how to use the web.config for the baseAddress if needed, settings in the app.config on the web server.

<service name="WebServEnc.ServLib.Service" behaviorConfiguration="MyServiceTypeBehaviors" >
      <!-- Add the following endpoint.  -->
      <!-- Note: your service must have an http base address to add this endpoint. -->
      <endpoint contract="WebServEnc.Servlib.IServ" binding="basicHttpBinding" address="http://mysite.com" />

    </service>
4

1 に答える 1

0

If you're hosting this in IIS or have the base address specified in your host, you don't need an address. You can just leave it as blank.

Look here for more info: http://msdn.microsoft.com/en-us/library/ms733932.aspx

于 2012-08-10T00:04:57.417 に答える