Hi,
You're going to have to modify the auto generated Reference.cs files
of each Web Reference and add the DoNotObfuscate attribute to each
SOAP method wrapper.
The Reference.cs files can be found under each Web Reference after
enabling the "Show All Files" option of the Solution Explorer Tab.
Since these classes are auto generated the DoNotObfuscate attribute
can disappear after you've edited it using VS, so you should add some
startup checks to your app to make sure the attribute is still there:
public static class ObfuscationChecker
{
public static void PerformChecks()
{
CheckDoNotObfuscate(typeof(com.example.class), "Method1");
CheckDoNotObfuscate(typeof(com.example.class), "Method2");
}
private static void CheckDoNotObfuscate(Type clsType, string
methodName)
{
// Get the MethodInfo object.
System.Reflection.MethodInfo mInfo =
clsType.GetMethod(methodName);
// See if the DoNotObfuscate attribute is defined for this
method.
if(!Attribute.IsDefined(mInfo, typeof(DoNotObfuscate)))
// Throw Exception if it's not defined.
throw new Exception(string.Format("DoNotObfuscate is
not set on {0}.{1}!", clsType, methodName));
}
}
I hope this helps, and I hope to see more answers to questions in this
group especially given the current support situation with eziriz.
Cheers,
Hassan