Hi Ajith, I had turned on the Soap Monitor phase in axis2 and I can see the response message has all my data (code, message, and array data). Can you point me to a sample/example client beside Weather-client that can receive an array of Objects? I have successfully received an array of Strings via my Service and would like to try a client that can receive an array of objects of user-defined type. BTW, I will try the tcpmon as suggested.
Thanks, --MK > Date: Fri, 5 Oct 2007 19:12:45 -0400 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: Axis2: How do I access an attribute of a response in the client > > Hi Mk, > It's not so clear why this would happen. The best thing to do is to > see whether the data array is really in the wire. You can use TCPMon > (http://ws.apache.org/commons/tcpmon/) to check whether the message > received is correct. > > > Ajith > On 10/5/07, M K <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I am new in axis and have tried the Axis2 Quick Start Guide with > > successfully. > > I got stuck when I started to expend the basic example Web services a bit > > more. > > I have a Service class (Java) that returns a Response Object to the caller > > application. My Response object has following attributes with the > > appropriate > > getters and setters: > > > > - code (String) > > - message (String) > > - data (an array of Payload objects) > > > > My Payload object looks like the following: > > - txType (String) > > - description (String) > > > > BTW, none of the attributes are initialized at the service startup time. > > > > On the client side (I am using a modified version of the Axiom client from > > Weather example), > > I can retrieve the code and message attributes correctly from the Response > > object. > > But I get a null array for the data attribute even though I am setting a my > > data > > (Payload objects) on the server side. > > > > Both my Response and Payload implement Serializable. Am I missing something? > > Oh, > > I am deploying my web service under JBoss 4.0.5 (I am not sure if it > > matters). > > > > Any help on this will be greatly appreciated. Axis2 generated WSDL shows my > > types > > properly, I think. > > > > Thanks, > > - MK > > > > > > > > ________________________________ > > Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it > > now! > > > -- > Ajith Ranabahu > > Reading, after a certain age, diverts the mind too much from its > creative pursuits. Any man who reads too much and uses his own brain > too little falls into lazy habits of thinking - Albert Einstein > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
