axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From learn_n_share <amandeepsingh.ba...@gmail.com>
Subject Is this the correct way to return an object from a java web service?
Date Tue, 06 May 2008 06:31:15 GMT

Hi.
On returning simple data types from my Java WS, I retrieve data successfully
at the front end, wherein i call the WS. But I have some problem with
retrieving an object array from web service

say if i have

class Sample {
   String s[];
   int      b;
   //getters and setters
}

public Sample[] somefunction() {
   Sample object[];
   ...
   // object array gets created and initiated
   return object;
}

For this, I create corresponding xml, and deploy it in axis2 webapp

On calling this WS, I m unable to retrieve the object array.
had i returned some simple data type, say string, i would have successfully
retrieved the value at front end

what am i missing?

-- 
View this message in context: http://www.nabble.com/Is-this-the-correct-way-to-return-an-object-from-a-java-web-service--tp17075561p17075561.html
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