BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-17-2009, 03:52 AM   #1
anilarkay
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: Airtel
Posts: 5
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
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
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
anilarkay
New Member
 
Join Date: Nov 2009
Model: 8900
PIN: N/A
Carrier: Airtel
Posts: 5
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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec... picture

Vintage Journal Beautiful Garden Flower Embossed Leather-Antique Handmade Dec...

$27.91



DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101  picture

DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chip *NEW* 40278101

$50.00



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00



Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue picture

Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue

$141.00







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