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

GENDEX GXP X-RAY FILM PROCESSOR fixer transport
$29.99
GENDEX GXP X-RAY FILM PROCESSOR fixer transport  pictureALLEN-BRADLEY 1785-L40B/C PLC-5/40 PROCESSOR MODULE
$137.95
ALLEN-BRADLEY 1785-L40B/C PLC-5/40 PROCESSOR MODULE pictureAllen-Bradley 1756-L73S /B NEW Factory Sealed GuardLogix Processor 5573S
$3719.85
Allen-Bradley 1756-L73S /B NEW Factory Sealed GuardLogix Processor 5573S  pictureAllen Bradley SLC 500 Processor Unit 40 I/O, 1747-L40B, Series B, USED
$299.99
Allen Bradley SLC 500 Processor Unit 40 I/O, 1747-L40B, Series B, USED pictureFixer Roller Transport Rack for Air Techniques AT/2000 XR X-ray Processor
$159.99
Fixer Roller Transport Rack for Air Techniques AT/2000 XR X-ray Processor picture






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