BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-05-2011, 11:27 AM   #1
thatoulah
Knows Where the Search Button Is
 
Join Date: Apr 2010
Model: 8520
PIN: N/A
Carrier: T-Mobile
Posts: 25
Default (.NET) ArrayOfString to (Java) String []

Please Login to Remove!

My web service (in .NET, C#) sends an array of strings
public String[] authenticationWithKey(String e, String k, int n)

but when I invoke the method at my BB application(in Java),

String [] array;
array = w.authenticationWithKey(embgT.getText(), keyT.getText(), 1);

this won't pass. (Type missmatch: cannot convert from ArrayOfString to String)

Can you tell me a solution, maybe a compatible .net to java array, list or something...

Thanks

Last edited by thatoulah; 05-05-2011 at 11:57 AM..
Offline  
Old 05-09-2011, 02:09 PM   #2
rajeraja
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Default Re: (.NET) ArrayOfString to (Java) String []

Hi,

I am new to BB development. I am trying to consume a .Net web service from BB application. Could you please tell me how to create a web service client in BB? It would be of great help, if you could pass on the code snippet. Thanks in advance.

Ananth
Offline  
Old 05-09-2011, 02:34 PM   #3
0x00000000
New Member
 
Join Date: May 2011
Model: 7100T
PIN: N/A
Carrier: wtf
Posts: 14
Default Re: (.NET) ArrayOfString to (Java) String []

@thatoulah

Have you ever checked for exact syntax, spelling, spaces?
Offline  
Old 05-11-2011, 07:50 AM   #4
thatoulah
Knows Where the Search Button Is
 
Join Date: Apr 2010
Model: 8520
PIN: N/A
Carrier: T-Mobile
Posts: 25
Default Re: (.NET) ArrayOfString to (Java) String []

Quote:
Originally Posted by 0x00000000 View Post
@thatoulah

Have you ever checked for exact syntax, spelling, spaces?
of course It's impossible to pass an array from c# to java. I put the the array in a string separated with commas, send it, and then split the string back into an array.

sort of xml-ing :D
Offline  
Old 05-11-2011, 08:50 AM   #5
rajeraja
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Default Re: (.NET) ArrayOfString to (Java) String []

@0x00000000

Hi,

I am new to BB development. I am trying to consume a .Net web service from BB application. Could you please tell me how to create a web service client in BB? It would be of great help, if you could pass on the code snippet. Thanks in advance.

Ananth
Offline  
Old 05-11-2011, 08:52 AM   #6
rajeraja
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Default Re: (.NET) ArrayOfString to (Java) String []

@thatoulah

Hi,

I am new to BB development. I am trying to consume a .Net web service from BB application. Could you please tell me how to create a web service client in BB? It would be of great help, if you could pass on the code snippet. Thanks in advance.

Ananth
Offline  
Old 05-11-2011, 11:42 AM   #7
0x00000000
New Member
 
Join Date: May 2011
Model: 7100T
PIN: N/A
Carrier: wtf
Posts: 14
Default Re: (.NET) ArrayOfString to (Java) String []

String [] array; vs String[] array; first won't compile.

@rajeraja
Please make sure to read some tutorials. BB development means J2ME with a little bit of BB stuff added. Read the API here: goo DOT gl SLASH ayLea. If you need code snippets, please take a look at java2s.com.
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

Similar Threads for: (.NET) ArrayOfString to (Java) String []
Thread Thread Starter Forum Replies Last Post
converting Java application to Blackberry environment..NEED HELP! spacejumper General BlackBerry Discussion 0 10-16-2010 05:25 AM
Need some serious help with connecting to .NET webservice. GasBot Developer Forum 10 03-22-2009 06:51 PM
Emergency contacts list question a_kayaker BES Admin Corner 2 11-07-2008 12:23 PM
Vodafone and Dimension Today Installation Information (7130e) zarza Media Center 42 06-12-2006 09:14 PM
Problem W/ the O2 Theme on 7100i Stress BlackBerry Themes 24 01-31-2006 09:32 AM


MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S picture

MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S

$1500.00



MSA 10074137 Oxygen Altair Pro Single Gas Detector (O2) picture

MSA 10074137 Oxygen Altair Pro Single Gas Detector (O2)

$200.00



MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S) picture

MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S)

$790.00



Altair2X Co Instrument CO Gas Detector picture

Altair2X Co Instrument CO Gas Detector

$399.99







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