postman测试webservice

参考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


<?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:"[1775833180x]",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>

 返回消息:

<?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>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值