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

New BlackBerry Icon Mouse Pad Mats Mousepad Hot Gift
$10.9
New BlackBerry Icon Mouse Pad Mats Mousepad Hot Gift picture15 PCS BLACKBERRY M-S1 BLACKBERRY BOLD BATTERY (BAT-14392-001) BATTERIES
$3.99
15 PCS BLACKBERRY M-S1 BLACKBERRY BOLD BATTERY (BAT-14392-001) BATTERIES picture12 cans ZEP Meter Mist mandarian + blackberry + vanilla
$43.99
12 cans ZEP Meter Mist mandarian + blackberry + vanilla pictureScreen Protectors ZAGG InvisibleShield Screen Protector for BlackBerry Bold 9000
$23.78
Screen Protectors ZAGG InvisibleShield Screen Protector for BlackBerry Bold 9000 pictureFlower Essences Flower Essence Services Fes Quintessentials Blackberry Dropper,
$13.9
Flower Essences Flower Essence Services Fes Quintessentials Blackberry Dropper, picture






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