BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
goulamass Offline
Thumbs Must Hurt
 
Posts: 127
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Default Double KSOAP - 06-25-2008, 08:29 AM

How can I sen ddouble with Ksoap2???

WHen I do something like this :

geocoordinate.addProperty("latitude", new Double(43.61684999996));

I have a serialization error.

So I try to use a SoapPrimitive but it doesn't work.

Anyone have an idea???
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
goulamass Offline
Thumbs Must Hurt
 
Posts: 127
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Default 06-25-2008, 08:36 AM

So I correct my problem with this :

geocoordinate.addProperty("latitude", new SoapPrimitive( "http://www.w3.org/2001/XMLSchema","double","43.61684999996"));
   
Reply With Quote
  (#3 (permalink)) Old
CJLopez Offline
Knows Where the Search Button Is
 
Posts: 23
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Default 06-25-2008, 11:01 AM

I'd rather send everything as string and have the webservice do the actual convertions, that way the device wont have to do extra work converting from one format to another, and for the webserver this is nothing.

Most times, when working with webservices and devices, I have a bridge between my main webservices and the devices, on the bridge is where I do the type convertions
   
Reply With Quote
  (#4 (permalink)) Old
goulamass Offline
Thumbs Must Hurt
 
Posts: 127
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Default 06-26-2008, 03:11 AM

Yes I know but the web service is not mine and so I can change it.
   
Reply With Quote
Reply


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






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1