I ve built a simple webservice just for testing and whenever I implement it on my windows phone 8 solution(I add a refference) my methods which are decorated with the [webmethod] naturally seem to convert from type string for example to type void and at the end of the method name I see a async word. Can anyone please give me a suggestion how to fix that?
I need this webservice to target my database. I have to communicate with it via this webservice(actually using it as a proxy to get the the databaseserver). I doing everything locally. For example my webservice address is:
Jump to Post
Any particular reason you can't use the async keyword? If so, just take it off.
An async method returns a Task, the result of the Task is your data type. So it might say
Task<string>which means you can call the webservice from your application (synchronously) by called
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.