Print the Web Service's Response in java code -


i trying create web service client using wsimport tool. generates clientside stubs. in code trying print web service's result. try following code.

import com.cdyne.ws.weatherws.weathersoap; import com.cdyne.ws.weatherws.weather; import com.cdyne.ws.weatherws.weatherreturn; public class weatherclient1 {     public static void main(string args[])     {         weather we=new weather();         weathersoap ws=we.getweathersoap();         weatherreturn wr=ws.getcityweatherbyzip("10021");         system.out.println(wr);     } } 

it doesn't cause error or exception. print following result.

com.cdyne.ws.weatherws.weatherreturn@4e280c 

i need print responses seperately.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -