.net - How to create Nullable fields/variables from WSDL instead of extra fields/variables -


I have been using wsdl.exe to convert a WSDL file and Type.xsd file to a C # file I am The Wsdl file specifies the optional variable ( minOccurs = "0" maxOccurs = "1" ), and the generated .NET types create two fields in this way - for a variable (such as Status ) and one to let you know that it is specified ( status is specified ).

Is there a way to use only the wsdl tool to use a field that is faucetable (i.e. if not zero, Is it specified)? (If it helps, then I think I can change the wsdl file for the Nileel = "true" element.)

Is there a different, better tool that Will generate net.net from WSDL? I am using .NET 4, so it will be useful if the features of the generated types can be availed.

Note: I realized that I am using the wsdl tool. NET 2 and those new projects should use WCF for this stuff What do I want for any indicators of WCF?

In relation to WCF, run me from the svcutil tool (which was already in my path) just by command line in the folder with wsdl and xsd files: Svcutil * .wsdl * .xsd / language: C # ). Unfortunately, svcutil does not work any better with the use of nullable types instead of xSpecified variables.


Comments