`

测试RESTful WebService的客户端工具-Poster

 
阅读更多

Poster是一款用于与WebService副去其端进行交互并战士交互结果的基于Firefox的插件工具。

 

1. 安装

     工具菜单 --> 附加组件 --> 搜索Poster关键字

2. 使用

     重启Firefox后,单击右下角黄色P图标启动Poster.

3.  测试

     下面以例子演示http://springsfeng.iteye.com/blog/1659507中的WebService测试,如:

     (1) URL:http://localhost:8080/webservice/categoryservice/category/001

     Headers Tab: Name: Accept, Value:application/xml

     Click: GET

     Invoke: getCategory()

     (2) URL:http://localhost:8080/webservice/categoryservice/category

     Headers Tab: Name: Accept, Value:application/xml    

     Content to Send Tab: Content Type:application/xml, Content:

     <Category><categoryName>.NET</categoryName><categoryId>002</categoryId></Category>

     Click:POST

     Invoke: addCategory()

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics