[Mono-dev] WebServiceBindingAttribute bug in r72089?

joel reed joelwreed at gmail.com
Wed Feb 20 16:41:35 EST 2008


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

jr

-- 
Joel Reed
Manager, Leadership Software Engineering
Development Dimensions International, Inc. (DDI)
1225 Washington Pike
Bridgeville, PA 15017
412.257.3881
joel.reed at ddiworld.com


More information about the Mono-devel-list mailing list