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
Post a Comment