[Mono-dev] WebServiceBindingAttribute bug in r72089?
Robert Jordan
robertj at gmx.net
Wed Feb 20 16:57:05 EST 2008
joel reed wrote:
> When I upgrade mono from 1.2.6 to SVN HEAD, I get the following error
> making a webservice call:
>
> Unhandled Exception: System.InvalidOperationException:
> WebServiceBindingAttribute is required on proxy class
> 'Microsoft.TeamFoundation.Client.Authenticator'
>
> The class in question begins thusly:
>
> [System.Web.Services.WebServiceBindingAttribute(Name="ServerStatusSoap",
> Namespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/ServerStatus/03")]
> [System.Diagnostics.DebuggerStepThroughAttribute()]
> [System.ComponentModel.DesignerCategoryAttribute("code")]
> internal class Authenticator :
> System.Web.Services.Protocols.SoapHttpClientProtocol
>
> To get the class to work on SVN HEAD I had to make the following change:
> http://repo.or.cz/w/tfs.git?a=blobdiff;f=class/Microsoft.TeamFoundation.Client/Authenticator.cs;fp=class/Microsoft.TeamFoundation.Client/Authenticator.cs;h=49415b99a6e67c4c8ac8769787bf3e837dea14f2;hp=54fbe57736d23fa018840f0ebbf278c13acd35aa;hb=bec93a9ee5151193e6f1b41de8fe1667aadc0ba1;hpb=31e713085a865708a46ca82d7d2625b550332326
>
> Basically, changing "ServerStatusSoap" to "AuthenticatorSoap".
>
> I think the changeset which introduced this new behavior is r72089.
> http://lists.ximian.com/pipermail/mono-patches/2007-February/086979.html
>
> I'm a bit surprised that apparently now the attribute name must match
> the class name. That doesn't appear to be a requirement on this code
> sample at msdn2:
>
> http://msdn2.microsoft.com/en-us/library/system.web.services.webservicebindingattribute.aspx
>
This is must likely this bug:
https://bugzilla.novell.com/show_bug.cgi?id=360421
Robert
More information about the Mono-devel-list
mailing list