[Mono-bugs] [Bug 470088] New: wsdl2 generation nullable enums not nullable anymore

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 28 04:13:30 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=470088


           Summary: wsdl2 generation nullable enums not nullable anymore
    Classification: Mono
           Product: Mono: Tools
           Version: 1.9
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andres.meyer at computer.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5)
Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5

Generating a stub for a web services that has a nullable enum in the c#
function signature results in a non-nullable .net type in the stub. Manually
changing the type to System.Nullable<MyType> MyVar works fine.

[WebMethod(Description = "", EnableSession = false)]
public void MyFunc(MyType? MyVar)
{}

->
in Reference.cs:

[System.Web.Services.Protocols.So...]
public void
MyFunc([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] MyType
MyVar) ...

Reproducible: Always

Steps to Reproduce:
1. Create webservice for function with nullable enum
2. Create stub for function with wsdl2
3. Try using with null

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list