使用Postman测试WebService接口

文章目录

  • 使用Postman测试WebService接口
    • 1. 访问wsdl地址
    • 2. Postman配置
      • 1. URL及Headers设置
      • 2. Body设置
      • 3. 响应结果

使用Postman测试WebService接口

1. 访问wsdl地址

接口地址如:http://localhost:8101/ws/hello?wsdl

使用Postman测试WebService接口_第1张图片

2. Postman配置

1. URL及Headers设置

使用Postman测试WebService接口_第2张图片

2. Body设置

Body->raw设置如下

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://impl.service.ws.modules.jeecg.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <impl:sayHello>
         
         <name>jinshengyuanname>
      impl:sayHello>
   soapenv:Body>
soapenv:Envelope>

使用Postman测试WebService接口_第3张图片

3. 响应结果

  1. Body->Pretty

使用Postman测试WebService接口_第4张图片

  1. Body->Preview

使用Postman测试WebService接口_第5张图片

你可能感兴趣的:(postman,测试工具)