01.02.2013 Views

Download lab3_part2 - Khoa Khoa học và Kỹ thuật Máy tính

Download lab3_part2 - Khoa Khoa học và Kỹ thuật Máy tính

Download lab3_part2 - Khoa Khoa học và Kỹ thuật Máy tính

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Thương mại điện tử – Bài thực hành số 4 2012<br />

protected void btnRefresh_Click(object sender, EventArgs e)<br />

{<br />

//declare Service object<br />

CurrentTimeService.Service curtime = new CurrentTimeService.Service();<br />

}<br />

//call service method<br />

lblCurrentTime.Text = curtime.GetCurrentTime();<br />

Ta có kết quả như sau:<br />

4. Web Services được cung cấp miễn phí trên mạng<br />

Ta có thể sử dụng các Web Services được cung cấp sẵn trên mạng. Sinh viên tự tìm hiểu<br />

<strong>và</strong> sử dụng các phương thức được hỗ trợ trong các web services sau :<br />

� Quốc gia: http://www.webservicex.net/country.asmx?wsdl<br />

� Thời tiết: http://www.webservicex.net/globalweather.asmx?wsdl<br />

� Tỷ giá: http://www.webservicex.net/CurrencyConvertor.asmx?wsdl<br />

Đ ạ i h ọ c B á c h K h o a T P . H C M – K h o a K H & K T M á y<br />

T í n h<br />

Trang 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!