使用PostMan测试WebService接口
? ? ? 使用PostMan测试WebService接口? 参考资料: 通过XML请求WebServer? https://blog.csdn.net/qq_33933408/article/details/53149435? WebService发布与访问并通过Postman测试WebService接口?https://blog.csdn.net/up123456789/article/details/79474446 ?? 一、操作步骤1、设置URL 2、设置请求模式:Post 3、设置Header:添加?Content-Type ,值为?text/xml;charset=utf-8 4、设置Body:勾选raw 5、输入Body内容:(详见 二) ? 二、请求WebService时的Body结构? <?xml version="1.0" encoding="utf-8"?> 详细说明: (1) getWeather是方法名。 (2)theCityCode、theUserID是方法参数。 三、WebService响应时的Body结构<?xml version="1.0" encoding="utf-8"?> 详细说明: (1)getWeatherResult是方法的返回值。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |