BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
PascalCmoa Offline
New Member
 
Posts: 1
Join Date: Oct 2009
Model: 8800
PIN: N/A
Carrier: Computer Engineering
Default How to use a webservice from MDS - VS2008 - 10-05-2009, 08:11 AM

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:

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


PascalCmoa
8800

Last edited by PascalCmoa : 10-05-2009 at 08:18 AM.
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
brcewane Offline
Thumbs Must Hurt
 
Posts: 140
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Default 10-23-2009, 06: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.
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.