I had a problem that the WCF service (generated using svcutil.exe) generates its own data types instead of using the ones I already defined.
eg:
svcutil generated something like this:
public partial class EmailTransactionRequestMsg : object, System.Runtime.Serialization.IExtensibleDataObject
{
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
private int bit_to_setField;
private string country_db_identifierField;
.
.
}
when I really want it to use a class already exists:
[DataContract(Namespace = "Ps.App.Mailing.MsgQueue.MsgInterfaces")]
public class EmailTransactionRequestMsg
{
[DataMember]
public string country_db_identifier;
[DataMember]
public int bit_to_set;
}
I see that the svcutil service is creating a new extension for the Data field (which I don't know why this is necessary)
So, how do I get svcutil to use my own class (because I don't want to throw objects over each field)
Thanks everyone!
source
share