BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   How to use a webservice from MDS - VS2008 (

PascalCmoa 10-05-2009 07:11 AM

How to use a webservice from MDS - VS2008
Hi every body,

I'm trying to create a basic software using a webservices.
I put in the WebReference the url of the webservice. In my solution, the WS is now known. In the code behind, i do this code:


var service = new com_w3schools_www().TempConvert; // My Webservice
function CtoF(value)
        return service.CelsiusToFahrenheitAsync(value); // A method of this webservice.

But unfortunatly, i can't receive the response of the webservice. I don't know why:?

brcewane 10-23-2009 05:38 AM

All web service calls in an MDS Runtime application are asynchronous... There is an event on the CelsiusToFahrenheitCompleted object that you can assign to handle your return result.

You can get to this event by expanding the web reference in the solution explorer and navigating down to your method.

All times are GMT -5. The time now is 07:04 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.