I have a web service that will be deployed to multiple domains. I would like to get rid of the default WCF namespace " http://tempuri.org/ " and replace it with the domain on which the web service, for example, http://mydomain.com/ . "I know that the best solution is here is just having a web service in one place and using that one domain as a namespace, but at the moment this is not an option for me.
I found a partial answer to this question here . In this post, the suggested answer is to set the URL property in the configuration file, but I'm afraid I don't quite understand the answer. Where exactly is this URL property, exactly? In addition, for reasons not depending on my behavior, the client application that will consume this web service does not have the app.config file, so all the configs in this client application must be installed in the code. I'm not sure if this is important, but I thought that I would remind you just in case.
EDIT: To clarify, the link to http://tempuri.org "that I'm trying to delete is inside the .cs file that svcutil.exe created.
eg.
[System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IEmailService/SendEmail", ReplyAction = "http://tempuri.org/IEmailService/SendEmailResponse")]
void SendEmail(Services.Internal.CorrespondenceWebService.Email email);
source
share