zoukankan      html  css  js  c++  java
  • webserivce通过httppost方式调用

    问题起源

      webserivce的通用方式调用比较复杂,大家普遍接受通过http方式调用
    

    解决办法

      1)打开postman接口测试
      https://getman.cn/?s=c5538c4e399ba426c0cefbdb09ef318a
      2)url中输入,接口地址endpoint
      http://ip:port/services/sendmsg
      3)输入header
      Content-Type: text/xml
      SOAPAction: http://www.csapi.org/service/sendSms
      4)输入body参数
      webserice的消息请求体(soapui中的发送webserivce请求那串xml文本)
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sms="http://www.csapi.org/schema/sms">
         <soapenv:Header/>
         <soapenv:Body>
            <sms:sendSmsRequest>
            </sms:sendSmsRequest>
         </soapenv:Body>
      </soapenv:Envelope>
      5)点击发送即可
  • 相关阅读:
    Vue之仿百度搜索框
    Vue之交互
    Vue之键盘事件
    Vue之事件冒泡
    Vue之阻止默认行为
    sql注入常用注释符总结
    什么是Git
    Github部署博客
    php笔记
    JavaScript(更新中)
  • 原文地址:https://www.cnblogs.com/xiaoping1993/p/14185074.html
Copyright © 2011-2022 走看看