i have used a sample wsdl in my java code. when i try to print the output it returns only the package name like:
com.holidaywebservice.holidayservice_v2.CountryCode@6b6478
This happens only when the output was a list.
Part of my code:
HolidayService2 hs1= new HolidayService2();
HolidayService2Soap hss1= hs1.getHolidayService2Soap();
ArrayOfCountryCode acc = hss1.getCountriesAvailable();
system.out.println(acc.getCountryCode());
wsdl url:http://holidaywebservice.com/HolidayService_v2/HolidayService2.asmx?WSDL
With this
com.holidaywebservice.holidayservice_v2.CountryCode@6b6478you're trying to print theArrayOfCountryCodeobject. Your code instead should be:Update Try just adding the below
After the line
ArrayOfCountryCode acc = hss1.getCountriesAvailable();in your current code. But you see the gist of it,accis an array of country codes.