[Mono-bugs] [Bug 446297] Bug in Generating Proxy Class

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 9 14:59:23 EST 2009


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

User webservices at landmarkdigital.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=446297#c3





--- Comment #3 from WebServices Group <webservices at landmarkdigital.com>  2009-02-09 12:59:21 MST ---
Here is a more simple example (explains the sample project):

library file contains:

using System;
using System.Web;
using System.Web.Services.Protocols;
using System.Web.Services;

namespace Test
{

    public class Test
    {
        public class SecurityInfo : SoapHeader
        {            
            public string sUserName = String.Empty;
            public string sPassword = String.Empty;
        }

        public SecurityInfo SecurityInfoValue = new SecurityInfo();

        [WebMethod()]
        [SoapHeader("SecurityInfoValue")]
        public string TestMethod ()

        {
                return "Hello";
        }

    }
}

index.asmx contains:
<%@ WebService Language="C#" Class="Test.Test" %>


When You create a web reference to this this webservice, the Reference.cs file
contains:
[System.Web.Services.Protocols.SoapHeaderAttribute("SecurityInfoValueField")]
but should instead contain:
[System.Web.Services.Protocols.SoapHeaderAttribute("SecurityInfoValue")]

Visual Studio 2005 creates Reference.cs correctly.

-- 
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