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  




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