Hello,

i have problems using Axis2 (1.1.1 and Snapshot from 23.Feb) and i hope 
someone can help me.

If in client code request.setAmount(0) will be called, this value will be 
set to 0. But if client do not set
this value (in xml request --> nil="true"):
- server get an initialized Integer with a 0 value (I cannot find out if 
client called this setter with 0 or not set this value :(((( )

This is regarding to this JIRA-Entry 
(http://issues.apache.org/jira/browse/AXIS2-1272). But the workaround to 
set MIN_VALUE
is not really what i want. Is it possible to return null for nil, and 
initialized Integer otherwise ?

With Strings it is the same thing. But there was a change from 1.1.1 
Release to SNAPSHOT (mentioned above). If client set
a string to an empty string ( request.setRequestString("") ):
- server receives an empty string (Axis2 1.1.1)
- server receives null (SNAPSHOT)

If my client do not call this mehtod:
- server receives an empty string (Axis2 1.1.1)
- server recieves null (SNAPSHOT) .... HOORAY

My hope was, that:
- request.setRequestString("") returns an empty initialized string
- if nothing is called server receives null

Please help me with that, it's really annoying, that there is no 
possibility to check if a setter was called or not.
Fixes in SNAPSHOT-Version do not solve my problem with optional parameters 
:(

wtr,

Daniel Kuschow

Fyi:
- Apache Tomcat 5.5.20 running under Java 1.5
- Used Axis2 1.1.1 and SNAPSHOT (23.02.2007)
- Using ADB at client side
- At server side i create MyOwn.war (with axis2 jar files included)
- service is POJO-Based (Java2WSDL)

Reply via email to