功能描述
WEB请求定义指的是我们可以定义 Restful、WebService调用。
调用WebService,webservice 使用的是SOAP协议。我们调用web服务,根据省份获取城市。
POST /WebServices/WeatherWS.asmx HTTP/1.1Host: www.webxml.com.cnContent-Type: text/xml; charset=utf-8Content-Length: lengthSOAPAction: "http://WebXml.com.cn/getSupportCityString"<?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><getSupportCityString xmlns="http://WebXml.com.cn/"><theRegionCode>string</theRegionCode></getSupportCityString></soap:Body></soap:Envelope>
操作步骤
【菜单路径:】系统配置—>系统工具—>web请求定义
点击新建
输入请求地址:http://www.webxml.com.cn/WebServices/WeatherWS.asmx
请求方式:soap
请求类型:post
数据类型:xml
请求头配置:根据不同的数据类型加载出不同的请求头
传递参数:
请求报文:和前面的配置的传递参数相对应
点击调用请求

运用到流程事件
在流程事件配置中选择web请求接口

点击【配置】,选择web请求接口

配置参数的值来源

点击测试

文档更新时间: 2020-11-30 10:34 作者:zhuyunyun