title: Web Service Namespace
body: <p>I am having problems with my webservice namespace. It works fine on my computer, but when i upload it to the team foundation server, it does not work for anybody else.</p>
  
  <p>My code in the webservice (located in the 'Sentry.SAID' namespace in its own app:</p>
  
  <pre><code>Imports System.Web.Services
  Imports System.Web.Services.Protocols
  Imports System.ComponentModel
  Imports Sentry.SAID.Core
  Imports Sentry.SAID.Web
  
  &lt;System.Web.Services.WebService(Namespace:="http://localhost")&gt; _
  &lt;System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)&gt; _
  &lt;ToolboxItem(False)&gt; _
  Public Class Powerbeatws
      Inherits System.Web.Services.WebService
  </code></pre>
  
  <p>XML file in the 'Sentry.SAID.Web' app in the 'Sentry.SAID'namespace</p>
  
  <pre><code>        &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="PowerbeatwsSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
           receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
           bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
           maxBufferSize="11000000" maxBufferPoolSize="524288"
           maxReceivedMessageSize="11000000"
           messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
           useDefaultWebProxy="true"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
             maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
            &lt;security mode="None"&gt;
              &lt;transport clientCredentialType="None" proxyCredentialType="None"
               realm="" /&gt;
              &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://localhost:62862/Powerbeatws.asmx" binding="basicHttpBinding"
         bindingConfiguration="PowerbeatwsSoap" contract="PowerbeatSR.PowerbeatwsSoap"
         name="PowerbeatwsSoap" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>If i change the endpoint address to localhost/Powerbeatws.asmx, it throws an error. Any idea's how I can get this to work on seperate computers using localhost?</p>
  
  <p>Currently to get it to work on any other computers, a new service reference must be added.</p>