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

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐