BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 07-03-2009, 10:54 AM   #1 (permalink)
New Member
Join Date: Jun 2009
Model: 9500
Carrier: Vodafone
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Invoking a web service

Please Login to Remove!

I am trying to invoke the web service through BlackBerry Code, but unable to successfully come up with a Client Code.
The following procedure is used to come up with the Client Code:

Generate the client stub code using wsdl2java command
Package the stub file as a jar
Import the jar along with the weblogic.jar and webservices.jar and create a client request file
In the ClientRequest File we create an instance for the webservice and try to invoke the web method using that instance

After doing all this, the request file compiles without any errors.
But while running it in Eclipse using JDE 4.3 plugin, it gives a java.lang.NoClassDefFoundError

When i try to run with the same setup in JDE 4.3 we get the following error
wl/weblogic/j2ee/descriptor/WebAppBeanImpl.class: Error!: Invalid class file: Java heap space

Can you please let me know if the procedure i have followed is correct.

We have also tried the following thing:

i tried using ksoap2.jar which can be used to generate the request xml for the web service.
But we are not able to form the request xml as per our webservice.

Please help.
Old 07-03-2009, 01:29 PM   #2 (permalink)
Thumbs Must Hurt
Join Date: Feb 2009
Location: CANADA
Model: 9000
Carrier: Rogers
Posts: 64
Post Thanks: 0
Thanked 0 Times in 0 Posts

Usually ppl show code or something which does not work
Old 07-10-2009, 09:37 PM   #3 (permalink)
New Member
Join Date: Jul 2009
Model: 7100T
Carrier: verison
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts

if you can provide all of the code we might be able to give you direction
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

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