BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-15-2008, 03:08 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default return results web services asp .net

Please Login to Remove!

Hi

I want to make a webservice that return me 2 strings, How can i do it?

<WebMethod()> _
Public Function Validarusuario(ByVal usuario As String, ByVal password As String) As String
Try
If usuario = "1" Then Return usuario + " Sip" Else Return usuario + " Nop"
Catch ex As Exception
Return "False"
End Try
End Function

This sample, only return me one string, How can I do it for return me 2 or more?, and How can I return a dataset result for I can capture it since J2ME?

Thanks, Oscar
Offline  
Old 04-15-2008, 09:06 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: o2
Posts: 25
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

this isn't technically to do with bb development - maybe a .net forum would be a better place?

but anyway you could return an array of strings.
Offline  
Old 04-15-2008, 09:29 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes or return one String like this : "Stringa@Stringb" and cut what you have on the @
Offline  
Old 04-15-2008, 10:13 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Xml

But, there are some way to send an xml data from web service and get this xml since j2me client?

Thanks, Oscar
Offline  
Old 04-15-2008, 10:27 AM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think yes and it's what I'm trying to do
Offline  
Old 04-15-2008, 11:23 AM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

My email is [email address], Could you send me the solution if you find it?

Thanks, Oscar
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

SMC air valve NVFS2100-3FZ
$25.0
SMC air valve NVFS2100-3FZ  pictureSMC SY5140R-3DZ 110 VAC Single Solenoid Pneumatic Valve SY5140R
$20.0
SMC SY5140R-3DZ 110 VAC Single Solenoid Pneumatic Valve SY5140R pictureASCO Air, Inert gas and Water 3-Way Brass Solenoid Valve 8316R65 24VAC 1/2" exp
$69.95
ASCO Air, Inert gas and Water 3-Way Brass Solenoid Valve 8316R65 24VAC 1/2Numatics 237-952B Solenoid Coil
$39.98
Numatics 237-952B Solenoid Coil pictureSkinner Electric Valve, 1/4" Four Way Solenoid Valve, General Purpose Valve, NIB
$50.0
Skinner Electric Valve, 1/4






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