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  




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