While
ServiceKnownType
attribute on the service class/interface/method exposed the type in the XSD schema of the WSDL, the default client proxy generation does not generate code for it.Eventually ended up with a dummy solution of having a dummy method:
public class ExposedDataTypes
{
public CustomType1 type1 { get; set; }
public CustomType2 type2 { get; set; }
}
ExposedDataTypes IService.Ignore()
{
return null;
}
Not the best solution, but couldn't gracefully work around it. Easy and works nicely though.
No comments:
Post a Comment