BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-17-2009, 03:52 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: Airtel
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Stuck on API differences with SOAP Application

Please Login to Remove!

Hi All,
I've successfully created a standalone java version of a SOAP communication class to enable Web Services data delegation.
But when I try to port to Blackberry device software, I'm having trouble.
1. I cannot find the correct replacement for HttpURLConnection class in Blackberry.
2. Though I can use HttpConnection, It lacks doOutput(true) method. without this, I get error.

We need to use doOutput=true, so we can output the request/response to the Writer object through the stream.
Can someone please look into this and suggest a solution?
Offline  
Old 12-17-2009, 10:10 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you could check ksoap2, with the source being available you may get some hints.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 12-21-2009, 01:42 AM   #3 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: Airtel
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Stuck on SOAP Application for BlackBerry -> Tried KSOAP2 but...

Hi, thanks for yo' reply.
I've already tried KSOAP2 but It always gives RunTime Exception on Stimulator.
I'm using Eclipse with JDE 4.6.1
again, when I tried as a standalone application,
I'm unable to use the HttpTransport.call method. IT gives me error...
Exception in thread "main" java.lang.ClassFormatError: Method <init> in class ja
vax/microedition/io/Connector has illegal modifiers: 0x102
at java.lang.ClassLoader.defineClass1(Native Method)
......................
.....................
at org.ksoap2.transport.HttpTransport.call(Unknown Source)
at KSOAPDemo.main(KSOAPDemo.java:74)

(when I tried that from a standalone(not from J2ME container) application just for a check.)
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

Thomas 2857 Red Rubber Gum Extruded Vacuum Tubing 11/16" Tube OD x 5/16" Tube...
$34.79
Thomas 2857 Red Rubber Gum Extruded Vacuum Tubing 11/16PIAB M63 Air Driven Vacuum Pump
$24.95
PIAB M63 Air Driven Vacuum Pump pictureTable Vacuum Base Bench Vise Aluminum Body Rotates and Tilts Rubber Line Jaws
$19.98
Table Vacuum Base Bench Vise Aluminum Body Rotates and Tilts Rubber Line Jaws  pictureTHERMAL CARAFES, GIFTS, COMMERCIAL COFFEE MACHINE, TEA POT, INSULATED SERVER
$29.99
THERMAL CARAFES, GIFTS, COMMERCIAL COFFEE MACHINE,  TEA POT, INSULATED SERVER pictureTHERMAL CARAFES, GIFTS, COMMERCIAL COFFEE MACHINE, VACUUM POT, INSULATED SERVER
$99.99
THERMAL CARAFES, GIFTS, COMMERCIAL COFFEE MACHINE,  VACUUM POT, INSULATED SERVER picture






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