BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-15-2008, 03:08 AM   #1
racsus
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
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
alzzz
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: o2
Posts: 25
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
goulamass
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
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
racsus
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
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
goulamass
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Default

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

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

Thanks, Oscar
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Super x7dbe+ with dual Xeon E5410 Prcessors and 8gb ram picture

Super x7dbe+ with dual Xeon E5410 Prcessors and 8gb ram

$295.00



INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832 picture

INTEL XEON E5 2520V2 E5 2620V2 SR1AN 2.10 GHZ Core Processor 3401A832

$12.00



INTEL S5000PSL Multi-Core Xeon Motherboard / Server Board w/ 2X L5420 & 2X2G RAM picture

INTEL S5000PSL Multi-Core Xeon Motherboard / Server Board w/ 2X L5420 & 2X2G RAM

$61.62



INTEL XEON 3.40GHz QUAD CORE CPU PROCESSOR SR0P5 E3-1240V2 LGA1155 SOCKET picture

INTEL XEON 3.40GHz QUAD CORE CPU PROCESSOR SR0P5 E3-1240V2 LGA1155 SOCKET

$24.99



1 Pc Home Intel Xeon Silver Sclip 4110 Linux   - NEW picture

1 Pc Home Intel Xeon Silver Sclip 4110 Linux - NEW

$245.00



Cisco MCS 7800 Server picture

Cisco MCS 7800 Server

$150.00







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