Traditional Culture Encyclopedia - Weather inquiry - Ask how to use WebService and WeatherWebService to get local weather forecast.

Ask how to use WebService and WeatherWebService to get local weather forecast.

Solution?

In FormCreate, adjust the assignment statement of HTTPRIO 1 WSDLLocation to the top, that is, procedure form1.formcreate (sender: object);

begin

HTTPRIO 1。 wsdl location:= '/web services/weather web service . asmx? wsdl ';

HTTPRIO 1。 service:= ' weather web service ';

HTTPRIO 1。 port:= ' WeatherWebServiceSoap ';

// HTTPRIO 1。 wsdl location:= '/web services/weather web service . asmx? wsdl ';

End;

D passed the test in 2007.