• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Java Objects Integers/Doubles in webservices.

 
jj johnson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic