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
sahil_khanna
Posts: 112
Registered: ‎07-19-2009
My Device: Not Specified
Accepted Solution

Using Web Service

I'm using Eclipse Version: 3.4.1 with BlackBerry JDE Component Pack Version: 4.6.1.27.

I intend to use an existing .Net web service. I'm unaware of the process to use it in BlackBerry environment.

Kindly help. Relevant sorce codes would be extremely helpful.

Please use plain text.
Developer
simon_hain
Posts: 15,849
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Using Web Service

you can use suns wireless toolkit to create stubs, these can be used since 4.3 or you can use ksoap2. both keywords should give some results on a forum search.
----------------------------------------------------------
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
Please use plain text.
Developer
sahil_khanna
Posts: 112
Registered: ‎07-19-2009
My Device: Not Specified

Re: Using Web Service

 

I tried using Stub Generator available in Sun Java(TM) Wireless Toolkit 2.5 for CLDC and entered the following arguments

 

 

WSDL FileName or URL: http://crmserver/Service06_10/Service06_10.asmx

Output Path: C:\Documents and Settings\adam\My Documents

Output Package: MyRMI

CLDC Version: 1.1

 

 

It gives the following error.

 

Stub Generation Failed

error: modeler error: failed to parse decument at "http://crmserver/Service06_10/Service06_10.asmx": org.xml.sax. SAXParseException: The element type "p" must be terminated by the matching end-tag "</p>".

 

 

 

I guess I'm missing something.

Please use plain text.
Developer
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Using Web Service

I don't know a lot about services but I think there is some kind of error in the generated xml or you are using a non basic type of data.

Please use plain text.
New Developer
itdirectorate
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

Re: Using Web Service

Hi Sahil, 

 

Do you have done with that toolkit and run well?

May i get more info how to download and use it?

 

Thanks

Victor

Please use plain text.