Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 51
Registered: ‎04-16-2009
My Device: Not Specified
Accepted Solution

how to use webservices

Hi,

 

I'm a beginner developper in java, anb I just want to know how can I use webservice in java application for blackberry.

 

If somebody have some tutorials links, it's would be cool.

 

Thank you.

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to use webservices

to keep it simple: don't Smiley Happy

webservices in BB are a bit complicated.
there are two common approaches:
- use the stubs implemented in 4.3 i think (JSR #?)
- use ksoap2 as a framework

for ksoap i can suggest this post:
http://www.blackberryforums.com/developer-forum/140930-blackberry-jde-ksoap-noobs.html

personally i use ksoap2 but have developed some tools to generate code, mandatory for more complicated webservices.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: how to use webservices

Does the axis code generator work here? I've used that and it is great for j2se.

 

Developer
Posts: 51
Registered: ‎04-16-2009
My Device: Not Specified

Re: how to use webservices

I have allready tried to use the ksoap2, but I have got an executing error telling me : "Module ksoap2 - j2me-core 2.1.2 not found".

 

Have you got an idea concerning the origin of the problem?

 

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to use webservices

you have to add ksoap as a library. the linked forum entry should explain it.

axis does work with quite some modifications. with our webservice system we generate blackberry mappings and code from the wsdl.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 51
Registered: ‎04-16-2009
My Device: Not Specified

Re: how to use webservices

ok,

 

I read the link.

 

Thank you for your help.

 

Developer
Posts: 51
Registered: ‎04-16-2009
My Device: Not Specified

Re: how to use webservices

I have to download a preverified ksoap2-j2me-core-2.1.2.jar folowing this link :

http://www.falseflag.com/ksoap2-j2me-core-2.1.2.jar

 

but it is not seems to be possible

 

Is anybody know another link to donwload the preverified ksoap ?

 

 

Developer
Posts: 51
Registered: ‎04-16-2009
My Device: Not Specified

Re: how to use webservices

Developer
Posts: 304
Registered: ‎04-30-2008
My Device: Not Specified

Re: how to use webservices

I have successfully used stubs generated with the sun wireless toolkit which means no need to include the ksoap libraries.  I think support for this is supposed to work starting in v4.3 although in the very small amount of testing I have done my apps work above 4.3 but give an error at 4.3.
Developer
Posts: 174
Registered: ‎08-20-2008
My Device: Not Specified

Re: how to use webservices

I found the kSoap libraries rather large and could not get them to work correctly. I use kXML with a http connection which works really well and very fast!