当前位置:网站首页>Use soapUI tool to generate SMS interface code

Use soapUI tool to generate SMS interface code

2022-06-10 12:27:00 weixin_ forty-seven million fifty-six thousand one hundred and

download SoapUI

Baidu online disk download :

link :https://pan.baidu.com/s/11Kr4ftVpPdpb88wS9UdAUw
Extraction code :2i5u

Official website download address : Download from the official website

Operation steps :

1. newly added soap project

 Insert picture description here

2. Enter the interface address of SMS docking platform :

 Insert picture description here
Click on OK

3. Generate The request page is as follows : Enter the data to be filled in the input box on the right , as follows

 Insert picture description here
 Insert picture description here

5. Right click the project name on the left – choice (generate code)

 Insert picture description here

6. Select the location where you want to save the file

 Insert picture description here

7. After selecting the address . Click on Tools Button , Enter the configuration information , stay TOOLS Select the location of the configuration file in ( This one. axis The file is in Baidu network disk at the beginning ), Select after configuration OK

 Insert picture description here

8. After configuration , Click on Generate Button , The generated code

 Insert picture description here

9. Generate a successful id

 Insert picture description here

10. Find the location of the selected storage , Look at the code

 Insert picture description here
 Insert picture description here

11. Put the code into the project , Call it at the address that needs to be called ( Be careful : Generated code Not in the spring In the container )

 Insert picture description here

12. Add the interface address for sending SMS to the parameter : as follows :

 Insert picture description here

 ESBBusService_InterfacePortType execute=new ESBBusService_InterfaceHttpPortSoapBindingStub(new URL(messageUrl), null);
13. call esbBusRoute Method , And pass in parameters , The parameters here are the six mandatory parameters in the interface document , Tongtong will need to send and receive the mobile phone number and message content of the SMS , Add to parameters to pass , You can complete the writing of SMS sending code

 Insert picture description here

These are the problems encountered in the work , Make a note of , For your reference

原网站

版权声明
本文为[weixin_ forty-seven million fifty-six thousand one hundred and ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101213247428.html