Friends, I have found the cause of this problem. The auto genereted service.xml was not having socpe='application' in the paramenter. I dont know whether we can force this or not.
But anyways..the issue is resolved. Thanks Regards, Mitesh Meet wrote: > > Hi, > I am struggling to find out the cause of this problem. > > //Webservice Code > public class WeatherService{ > Weather weather; > public void setWeather(Weather weather){ > this.weather = weather; > } > public Weather getWeather(){ > return this.weather; > } > } > //Client Code > WeatherServiceStub stub = new WeatherServiceStub > ("http://localhost:7001/axis2/services/WeatherService"); > > //Set Weather > sample.pojo.adbclient.WeatherServiceStub.Weather w1 = new > sample.pojo.adbclient.WeatherServiceStub.Weather(); > w1.setTemperature((float)39.3); > w1.setForecast("Cloudy with showers"); > w1.setRain(true); > w1.setHowMuchRain((float)4.5); > > SetWeather setW1 = new SetWeather(); > setW1.setWeather(w1); > stub.setWeather(setW1); > > //Get Weather > WeatherServiceStub.GetWeatherResponse res = stub.getWeather(); > WeatherServiceStub.Weather w2 = res.get_return(); > System.out.println("Temperature: " + w2.getTemperature()); > System.out.println("Forecast: " +w2.getForecast()); > System.out.println("Rain: " +w2.getRain()); > System.out.println("How much rain (in inches) : " +w2.getHowMuchRain()); > > The Weather object is being transferred to service properly. I can print > it and see it. But while returning the same back to the client, it returns > null. > > Any Idea? I Tried a lot for this. but being new bee in this field, dont > know much. > > Thanks, > Mitesh http://old.nabble.com/file/p29913368/WeatherService.wsdl > WeatherService.wsdl > -- View this message in context: http://old.nabble.com/Problem-in-Object-transfer-back-to-Client-tp29913368p29913550.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org