WSDL Annoyance

time to read 2 min | 320 words

This is not imprtant, but I can figure out why this:

namespace Foo
{
       [ServiceContract(Namespace = "http://www.test.com")]
       public interface IFubar
       {
              [OperationContract]
              void Act();
              
       }
 
       public class Fubar : IFubar
       {
              public void Act()
              {
                     
              }
       }
}

Result in a WSDL that starts with this:

<wsdl:definitions name="Fubar" targetNamespace="http://tempuri.org/">

Adding a [ServiceBehavior] with the correct namespace only move the tempuri to another location. Any ideas?