I generated a class file by using wsdl.exe and a wsdl-file.
Now one of the top elements in the result xml is optional which gives me some problems. In the generated code I have this:

Code:
 
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://abc/xyz", ResponseNamespace="http://abc/xyz")]
[return: System.Xml.Serialization.SoapElementAttribute("wmInternalErrorMsg")]
...