开发者

How to report progress of a web service on windows mobile client?

I have tried to implement progress reporting using a soap extension as described at the following links:

stackoverflow

codeproject

However, m开发者_JS百科y "ProgressUpdate" method is not being called, and I believe that is because I haven't got an app.config file in my Windows Mobile project to tell the web service calls to be processed by the SOAP Extension. How can do it in Windows Mobile? This is the sample config file used in the article:

<?xmlversion="1.0" encoding="utf-8" ?>
<configuration>
   <system.web>
      <webServices>
         <soapExtensionTypes> <add
        type="SoapExtensionLib.ProgressExtension, SoapExtensionLib"
        priority="1"  group="High" />
         </soapExtensionTypes>
      </webServices>
   </system.web> 

</configuration>


I figured out how to do this by adding a custom attribute to the method inside the generated proxy class. The custom attribute is derived from SoapExtensionAttribute.

I got the information at MSDN

Problem now is that I have to remember to add the attribute back in if I refresh the web service reference..............

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜