I have generated proxy class in C# using VS 2008 for a soap web service. A particular web method in that web service has a few optional parameters and I don't want to send any values for those. But the proxy class that I'm using doesn't let me do that; it gives an error if I use null for, say an optional parameter of type int (of course, it should). How can I pass 'nothing' for such parameters so that they get converted to blank elements when serialized to soap envelope?
A:
Are you using ASMX or WCF? Do you have a sample of what your input object looks liked?
Matt
2010-07-30 22:40:30