tags:

views:

60

answers:

1

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?

+1  A: 

Use this with your ServiceContract:

[ServiceContract(Namespace="http://someNameSpaceGoesHere/")]
public interface ISomeService
{
...
}
Chris O
Close. You also need to put a DataContractAttribute on all non-primative types.
Jonathan Allen