转贴自 http://www.bonashen.com/article.asp?id=87
- 运行 Eclipse WTP workbench.
- 打开Web services Explorer,主菜单-> Run -> Web Services Explorer . 等待一会儿将会出现Web Services Exlporer.
- 最大化窗口,结果如下:
- 在Web Service Explorer's工具栏 (顶部右边), 点击 WSDL 页面 图标,
- 点击 WSDL Main 图标后结果如下:
- 在WSDL URL框中输入URL地址 “http://www.xmethods.net/sd/2001/TemperatureService.wsdl ”, 然后点击 Go按钮 . 结果如下:
- 在 Operations in the right hand pane, click on getTemp . Result:
- In the zipcode string entry field, enter 90210 , then click on Go . In the Status pane, you should see an answer like this:
return (float): 57.0You may need to move the horizontal bar separating the Actions and Status panes upwards a bit to get a better view. Result: