Reputation: 70287
When I auto-generate my client classes I get these attributes.
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
System.Runtime.Serialization.DataContractAttribute(Name:="FeedStatusReport", [Namespace]:="http://schemas.datacontract.org/2004/07/OfferingSystem"), _
System.SerializableAttribute()>
On the server side, how do I change the namespace that the client sees?
Upvotes: 1
Views: 708
Reputation: 5037
Use this with your ServiceContract:
[ServiceContract(Namespace="http://someNameSpaceGoesHere/")]
public interface ISomeService
{
...
}
Upvotes: 2