aspose file tools*
The moose likes Web Services and the fly likes Using Java Objects Integers/Doubles in webservices. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using Java Objects Integers/Doubles in webservices." Watch "Using Java Objects Integers/Doubles in webservices." New topic
Author

Using Java Objects Integers/Doubles in webservices.

jj johnson
Greenhorn

Joined: Apr 23, 2008
Posts: 2
Hi:

I am new to web services and have a pretty basic question. We are using Axis 1 - and have seen some problems with passing Integer/Doubles via the webservice.
We have a bean that is set on the client side ( it has attributes that are integers/doubles).
When we get the bean from the client side the data is saved correctly - however when the same bean is read on the client side - it does not seem to return the values - they are null.
Also when a null value is passed from the client - it defaults to 0.
Does Axis support Integers/Doubles?
Are there any specific setting that we need to add to ensure that values can be passed as Integers/Doubles.
I was going through a thread - where some one was asked to make changes to his wsdl - however since that did not work out, he opted to use a Bean.
We have used a similar approach where we are now passing the Integer/Double value as a string and then doing a converion to integer/doulbe within the Bean.

Can someone please let me know if they've encountered the same issue - if so is this really the right approach. Are there any better alternatives/recommendations?

THanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Java Objects Integers/Doubles in webservices.