参考postman测试WebService接口_小豆的编程世界...的博客-CSDN博客_postman测试webservice接口
SpringBoot集成Axis2,部署webservice接口并调用_吃瓜~的博客-CSDN博客_axis springboot
SpringBoot2 整合 AXIS2 服务端和客户端_gblfy的博客-CSDN博客_springboot使用axis2
直接访问http://172.21.188.171:8980/services/SmsService?wsdl 是获得发布文档
访问http://172.21.188.171:8980/services/SmsService 是调用RPC方法
1.消息头:
The endpoint reference (EPR) for the Operation not found 可能问题以及解决办法_weixin_30685047的博客-CSDN博客
Content-type是text/xml,不是application/xml
消息体,示例1
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<sayHello xmlns="http://webservice.zjzy.com">
<arg0 xmlns="">lmycc</arg0>
<arg1 xmlns="">eeee</arg1>
</sayHello>
</soapenv:Body>
</soapenv:Envelope>
消息体,示例2文章来源:https://www.toymoban.com/news/detail-595644.html
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<sendSms xmlns="">
<arg0 xmlns="">{username:"szfzjz",password:"jsj@sz048",phoneName:"[17758331807]",content:"test",plantime:"",organId:"",sendType:"0",isForward:"1",forwardNos:"",forwardMark:"内容",isReplace:"0",suffixName:"内容",isDel:"0",smsType:"1",isThird:"1"}
</arg0>
</sendSms>
</soapenv:Body>
</soapenv:Envelope>
返回消息:文章来源地址https://www.toymoban.com/news/detail-595644.html
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:sayHelloResponse xmlns:ns="http://webservice.zjzy.com">
<ns:return>hello,lmycc....eeee</ns:return>
</ns:sayHelloResponse>
</soapenv:Body>
</soapenv:Envelope>
到了这里,关于postman测试webservice的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!