Callling a normal web service in WP7

前端 未结 1 1177
小蘑菇
小蘑菇 2021-01-28 03:26

I have normal .NET web service(not a WCF service).

I have added this service to my WP7 Project using Service Reference because we don\'t have . Normally we will add the

相关标签:
1条回答
  • 2021-01-28 04:30

    I think you are confusing the web service class(es) that run on the server, with the proxy class that is generated by the 'Add Service Reference' dialog in Visual Studio.

    The proxy class exposes methods that provide a way to call your [WebMethod] methods on the web service. It doesn't do the same for fields (even public ones).

    You wouldn't want to do this anyway as it would cause big scaling problems - what if two different clients both changed the value of 'msh'?

    You would be better off passing whatever state you require to each service method.

    0 讨论(0)
提交回复
热议问题