axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From user1234 <sunita_pa...@keane.com>
Subject Accessing an Axis + java based Webservice from Flex 2
Date Thu, 01 Mar 2007 07:43:56 GMT

Hi,
I have a axis based webservice which has 2 methods, load(int id) and
save(User user). 
These methods are implemented in java. 
The User class (object of which goes as argument in save method) has 4
attributes, their corresponding getters and setters. Additionality, when I
generated webservice using axis, it has added some methods responsible for
serializing / deserializing object of User class in user class itself. 
On the Flex side, I have same user class (as ActionScript class) with same
name attributes and getters/setters. 
When I call save() method of webservice passing object of user class from
action script on flex side, it gives me following error: 

[FaultEvent fault=[RPC Fault faultString="Error #1069: Property _dateOfBirth
not found on com.keane.vx.AppFuseExample.model.PersonFormInputs and there is
no default value." faultCode="EncodingError" faultDetail="null"]
messageId=null type="fault" bubbles=false cancelable=true eventPhase=2] 

Although the load () method, which takes integer as parameter works fine. 

Do I need to serialize the user object before I pass it to webservice? Or is
it the job of Axis? 
Are there any samples demonstrating passing flex objects to java/axis web
service. 

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Accessing-an-Axis-%2B-java-based-Webservice-from-Flex-2-tf3325493.html#a9245150
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message