当前位置:网站首页>使用SoapUI工具生成发送短信接口代码
使用SoapUI工具生成发送短信接口代码
2022-06-10 12:13:00 【weixin_47056195】
下载 SoapUI
百度网盘下载:
链接:https://pan.baidu.com/s/11Kr4ftVpPdpb88wS9UdAUw
提取码:2i5u
官网下载地址:官网下载
操作步骤:
1. 新增 soap 项目

2. 输入短信对接平台接口地址:

点击OK
3. 生成 请求页面如下:在右侧的输入框中输入需要填写的数据,如下


5.选择左侧的项目名称右键–选择(generate code)

6. 选择需要将文件保存的位置

7. 选择地址之后。点击 Tools 按钮,进入配置信息,在 TOOLS中选择配置文件的位置(这个的axis文件在开头百度网盘中有),配置完之后选 OK

8. 配置之后,点击Generate 按钮,生成代码

9. 生成成功的标识

10. 找到选择存放的位置,查看代码


11. 将代码放入项目中,在需要调用的地址调用它(注意:生成的代码 没有在spring容器中)

12. 在参数中添加发送短信的接口地址:如下:

ESBBusService_InterfacePortType execute=new ESBBusService_InterfaceHttpPortSoapBindingStub(new URL(messageUrl), null);
13. 调用esbBusRoute 方法,并传入参数,这里的参数是接口文档中的六个必传参数,同同将需要发送接收短信的手机号和消息内容,添加到参数中进行传递,即可完成短信发送代码的编写

以上是工作中遇到的问题,记录一下,供大家参考
边栏推荐
- (十 一)const修饰成员函数
- How to insert PDF into ppt as vector graph
- web设计与开发,高效web开发
- (1) Pretreatment summary
- CC2642R 蓝牙MCU芯片的学习
- 极简随机音乐播放器
- (11) Const decorated member function
- 更改系统时间
- Introduction to the library of C language best practices (Part 1)
- "Yi +" open source program - Design and practice of low delay player based on webrtc
猜你喜欢

Shadergraph - 301 bouncing ball

(6) Classes and objects, object initialization and copy constructors (3)

js将时间戳转换成正常时间格式

Transfomer self implementation and official library

4.25 million budget bidding: centralized procurement of onsite maintenance services for Oracle, teledb, telepg and other core system databases of Jiangsu Telecom

(四)类和对象(1)

数字经济时代,零售实体门店该何去何从

Stm32f407 learning notes (1) -exti interrupt event and NVIC register

ShaderGraph——303摇曳的小草

Learning of fm4057s single lithium battery linear charging chip
随机推荐
JS array de duplication: de duplication of two-dimensional arrays, removal of the same value, and removal of the same array
STM32 learning notes (2) -usart (basic application 1)
(5) Class, object and class file splitting operation (2)
共筑数字经济可信底座|2022可信数据库峰会即将召开
ShaderGraph——303摇曳的小草
C语言最佳实践之库文件介绍(上)
合集资料,必看
In the era of digital economy, where should retail stores go
Transfomer self implementation and official library
web开发发展趋势,web计划开发
ShaderGraph——302游动的龙
Zipoutputstream use
怎样将PDF作为矢量图插入PPT中
Missed scanning tool learning notes
Shadergraph - 303 swaying grass
Using SQLite3 database in embedded Linux
移动端整页滑屏示例(上下滑动整屏)(整理)
(十)空指针访问成员函数与this指针注意事项
Get enumeration values through reflection
Talk about message oriented middleware (1) and AMQP