[ https://issues.apache.org/jira/browse/AXIS2-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mitesh closed AXIS2-4841. ------------------------- Resolution: Not A Problem 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 > Not able to Transfer objects from server to client back > ------------------------------------------------------- > > Key: AXIS2-4841 > URL: https://issues.apache.org/jira/browse/AXIS2-4841 > Project: Axis2 > Issue Type: Task > Components: adb > Affects Versions: 1.4.1 > Environment: Windows XP, Axis2 Eclipse Plugin for code generator and > service arch > Reporter: Mitesh > > Hi, > I am struggling to find out the cause of this problem. > //Webservice. > public class WeatherService{ > Weather weather; > public void setWeather(Weather weather){ > this.weather = weather; > } > public Weather getWeather(){ > return this.weather; > } > } > //Client > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org