BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-05-2009, 07:11 AM   #1 (permalink)
New Member
 
Join Date: Oct 2009
Model: 8800
PIN: N/A
Carrier: Computer Engineering
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to use a webservice from MDS - VS2008

Please Login to Remove!

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 07:18 AM.
Offline  
Old 10-23-2009, 05:38 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 140
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Closed Thread


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

Revolabs 10-FLXUC1500 IP & USB Conference Phone with 2 Extension Mics VoIP Phone
$1077.75
Revolabs 10-FLXUC1500 IP & USB Conference Phone with 2 Extension Mics VoIP Phone pictureLot of (5) Avaya Digital 12 Button 5410 VOIP Office Telephone
$99.99
Lot of (5) Avaya Digital 12 Button 5410 VOIP Office Telephone picture4x LifeSize 440-00002-904 VOIP HD IP Audio Video Conferencing Phone #TQ1047
$90.0
4x LifeSize 440-00002-904 VOIP HD IP Audio Video Conferencing Phone #TQ1047 picture*LOT OF 2* POLYCOM SoundPoint IP 501 VOIP Phones *GOOD WORKING UNITS*
$32.99
*LOT OF 2*  POLYCOM SoundPoint IP 501 VOIP Phones  *GOOD WORKING UNITS* pictureSTAR2STAR 2250 VOIP Call Recorder - Tested
$105.0
STAR2STAR 2250 VOIP Call Recorder - Tested picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.