zoukankan      html  css  js  c++  java
  • 使用PostMan测试WebService接口教程

    一、操作步骤

    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"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <getXXXX xmlns="http://WebXml.com.cn/">  
          <Code>string</Code>
          <userID>string</userID>
        </getWeather>
      </soap:Body>
    </soap:Envelope>


    详细说明:

    (1) getXXXX是方法名。

    (2)Code、userID是方法参数。

      (3)   xmlns对应的接口的targetNamespace属性

  • 相关阅读:
    费用流入门
    网络最大流入门
    假期编程
    假期编程
    假期编程
    假期编程
    假期编程
    假期编程
    假期编程
    假期编程
  • 原文地址:https://www.cnblogs.com/pxblog/p/11671347.html
Copyright © 2011-2022 走看看