Well knock me down - Is that the correct error message????
> System.InvalidOperationException: WebServiceBindingAttribute is required
> on proxy classes.
After fiddling around for hours, in desperation, just for the kick of it, I
inserted this attribute into the declaration of the Web Service itself (i.e.
the asmx page). So here's what it looks like now:
[WebService(Namespace="http://srssoft.com/webservices/")]
[System.Web.Services.WebServiceBindingAttribute(Name = "RepositorySoap",
Namespace = "http://srssoft.com/webservices/")]
public class Repository : Microsoft.Web.Services2.WebServicesClientProtocol
// System.Web.Services.Protocols.SoapHttpClientProtocol
{...
BINGO! Everything starts working again. (WOW - just like it did under FX
1.1. :-\ )
So the point wasn't that the attribute was missing on the client Proxy, but
rather the attribute was missing on the Web Service itself! Nothing like a
well defined error message to shed some light on the problem.
Well I hope this helps the next guy who decides to migrate a WSE Web Service
from FX 1.1 to 2.0. If my experience is any indicator - it's not going to be
painless.
- Joe Geretz -
> System.InvalidOperationException: WebServiceBindingAttribute is required
> on proxy classes.
[quoted text clipped - 49 lines]
>
> - Joseph Geretz -
Joseph Geretz - 17 Jan 2007 01:57 GMT
Well, I'm further along, but this is still not working.
At least I'm now able to trace into the Web Service methods, however, on the
server, the following statement returns a null object reference.
SoapContext RespContext = SoapContext.Current;
So why is this object null? How do I send a response back to the client?
Looking into this a bit further, I see my Web Service class defined as
inheriting from base class
Microsoft.Web.Services2.WebServicesClientProtocol. Is this correct? I guess
this is the correct definition for the client, but how about for the server?
I wish I could find a WebServices*Server*Protocol class to inherit from but
I just can't find this. Can you tell me what is the correct base class for
my Web Service class on the server and what object I use to send back a
response to the client.
Thanks for your help!
- Joe Geretz -
> Well knock me down - Is that the correct error message????
>
[quoted text clipped - 79 lines]
>>
>> - Joseph Geretz -
Joseph Geretz - 18 Jan 2007 03:23 GMT
Forget it.
WSE 2.0 DIME is dead - long live WSE 3.0 MTOM!
Because I don't want to go through another such conversion anytime soon!!!
- Joe Geretz -
> Well, I'm further along, but this is still not working.
>
[quoted text clipped - 102 lines]
>>>
>>> - Joseph Geretz -