BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-05-2011, 11:27 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2010
Model: 8520
PIN: N/A
Carrier: T-Mobile
Posts: 25
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: May 2011
Model: 7100T
PIN: N/A
Carrier: wtf
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2010
Model: 8520
PIN: N/A
Carrier: T-Mobile
Posts: 25
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: Airtel
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: May 2011
Model: 7100T
PIN: N/A
Carrier: wtf
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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

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 11:23 AM
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 08:32 AM





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