BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-01-2009, 04:51 PM   #21
WAP_Maniac
New Member
 
Join Date: Sep 2009
Model: 8100
PIN: N/A
Carrier: timble
Posts: 2
Default Connect to a webservice whitout KSOAP

Please Login to Remove!

Hi everyone

I`m new in this! So I need help, I need to connect a .net webservice to receive an base 64 string and convert to image again, this image is taken by the camera. I tried this, but I dont how to convert the byte[] to string base 64 and send it to the webservice in .net.

How I convert the byte[] of the image to stringbase64 to be transfered???
the byte[] is called "imageBytes" it hace the image in bytes.

String imagen = new String(imageBytes);
connThread = new ConnectionThread();
connThread.start();
StringBuffer sb = new StringBuffer("Enviando...");
connThread.get(url);
connThread.post(url,imagen);
while (connThread.sending) {
try {
Status.show( sb.append(".").toString() );
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

if (connThread.sendResult) {
Status.show("Transmission Successful");
String str = connThread.responseContent;
}

connThread.stop();

Anybody can help me with this???
thanks!

Last edited by WAP_Maniac; 09-01-2009 at 05:09 PM.. Reason: upgrade of code
Offline  
Old 12-31-2009, 08:15 AM   #22
krishnan
New Member
 
Join Date: Dec 2009
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 5
Default

Quote:
Originally Posted by baran_khan View Post
Hey alzzz, thanks for ur help mate....I fixed this issue but didnt updated the status on the forum...thanks again for the help
Hi , Could you share your project with me. I followed the same steps you have suggested. But I did not get any response at all.


I tried using KSoapLibrary also.
But I got the following error:

unexpected type (position:END_DOCUMENT null@1:0 in
java.io.InputStreamReader@437e73a8.

Please help me.

Regards,
krishnan.
Offline  
Old 01-18-2010, 08:25 AM   #23
imalik@sequent-tech.com
New Member
 
Join Date: Jan 2010
Model: 8310
PIN: N/A
Carrier: reliance
Posts: 2
Default Java Webservice with KSopa2

Quote:
Originally Posted by goulamass View Post
Hi I use java web service and ksoap2.

So if you have any question, I will answer you as clearly as possible.

But first tell me where you are for the moment

Please do let me know as i am using apache axis from java webservices and i am able to call a .Net WebService with KSoap 2. But in Axis (java Web Service) i am not able to find the soap action.

and getting errors as "it is not able to find the WebService method" .

Please if you can give me some cod snippet of KSoap and java webservice.
Offline  
Old 06-02-2010, 06:48 AM   #24
swati
New Member
 
Join Date: Jun 2010
Model: 8520
PIN: N/A
Carrier: mail
Posts: 2
Default black berry application developer

Hi Baran,
Can you please send me small example of webservices ( dot net webservice in BB ) and how we can consume in BB, and also specify how webservice's method(where we pass user and pwd and got result in boolean) we can call thorugh it.

-----------------------

Quote:
Originally Posted by baran_khan View Post
Hi,

I have accessed a .Net web service using Http Request (via url) and that was pretty much easy. Now I need to access a java web service. I am not sure if I can use if via URL as I am not able to do that till now. Another option is to use ksoap2. Any idea about how can I proceed with that. I just need a good tutorial of information source as i am not able to find something relevant...

All I can find is accessing .Net web service via Http Client.

Hope to hear something great!!!
Offline  
Old 06-21-2010, 01:17 AM   #25
hassan_buttar
New Member
 
Join Date: Jun 2010
Model: 9550
PIN: N/A
Carrier: GSM
Posts: 2
Default

can any one please provide the link to pre verified version of Ksoap api i m recieving error of pakage verification error........
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


Polycom Vvx 601 VoIP 16 Line Business Phone 4.3

Polycom Vvx 601 VoIP 16 Line Business Phone 4.3" HD Touchscreen PoE With Stand

$28.95



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



Brand New Yealink MP54-TEAMS Teams Edition VoIP System MP54 picture

Brand New Yealink MP54-TEAMS Teams Edition VoIP System MP54

$130.00



Allworx Verge 9308 Voip IP Display Phone 8113080 Black Curly Ethernet VOIP picture

Allworx Verge 9308 Voip IP Display Phone 8113080 Black Curly Ethernet VOIP

$89.99



Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box picture

Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box

$59.99



Unifi Talk UVP Touch VOIP IP Phone Unlocked picture

Unifi Talk UVP Touch VOIP IP Phone Unlocked

$125.00







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