Getting error while calling webservice methods as Object required
Hi,
I am using below wsdl to work with webservices. This ws is contains 3 methods (countryInforByIana, getIANAInfo, regionsInfoByIana). I could not able to work with any of mehods as it giving error.
wsdl: http://www.mobilefish.com/services/web_service/countries.php?wsdl
For Method "countryInfoByIana", it is taking one input called "ianacode" and return a object of "CountryData". I have written below code and getting VBscript error as "object required for
country1 "
I have also tired with created a object of return class and catching returned value. But that is also failed.
Even I am unable to work with other methods too. Please provide me the code for work with other 2 mothods. I have also provided the WSDL file also.
code:
function countryinfo
dim country1
ainaid="in"
ainaid=aqConvert.VarToStr(ainaid)
set country1 = WebServices.MobileFish.countryInfoByIana(ainaid)
txt1= country1.countryname
msgbox txt1
end function
Any kind of help should be appreciated.
Regards,
Vinod