First, thank you for your response. I should tell you that I am using the bottom-up approach (code first).
I would like to send you a WSDL file, but I don't have one to send. The Axis2 wizards in Eclipse, unlike their Axis predecessors do not automatically generate a WSDL file. Unless I am mistaken, I would need to use the Axis2 code generation plugin to create one, is that correct? In fact, I have tried to use this plugin and I can't get it to work either. As for the objects I'm passing and returning they are very simple POJO's. In fact I just defined attributes the were all primitives and public. Since the attributes were public I did not define getter and setter methods. I used the methods in the generated stub code to access the data. The problem is there was no data to access, all string were null all integers 0!!! I will provide some code from a sample app when I get a chance. Look for it ina a day or two. Once again, thanks for your help. ----- Original Message ----- From: Amila Suriarachchi To: [email protected] Sent: Monday, February 02, 2009 1:02 AM Subject: Re: Passing And Returning Objects On Sun, Feb 1, 2009 at 9:34 PM, Michael <[email protected]> wrote: For the web services application I am developing I have designed my web services methods to accept objects and return objects. To avoid any problems and follow "best practices" for web development I have designed these objects with only "primitives" as attributes for objects that are passed and returned. There is no requirement to use only primitives. you can use objects but those objects should be POJOs. The stub code generated by Axis2 appears to provide everything needed to get and set the attributed for these objects. I have tried several of my web service methods from a test client using the Axis2 generated client stub. I am able to set the attributes of all passed objects and retrieve the attributes of all returned objects, but in both cases the attributes have no values!!!! Can you send your wsdl and request and response message xmls? I have debugged the code on both the server and client side to make sure the values were being set correctly going both ways, and they are. It is as if when the objects are serialized and deserialized from client to server or server to client the attribute values of the passed and returned objects are being lost. Can anyone explain? Thanks, Mike -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.233 / Virus Database: 270.10.16/1930 - Release Date: 02/02/09 07:51:00
