Joke Collection Website - Public benefit messages - How does java program call webservice interface to realize the function of sending short messages?
How does java program call webservice interface to realize the function of sending short messages?
1. according to http:/134.224.102.6: 80/company send sminf/services/SMS INF? WSDL gets the wsdl file.
Secondly, according to the jar package of Axis, the WSDL file is generated as customer service java code. (For ease of management, you can type java files into jar files. How to generate java code is explained in Baidu, so I won't write it. )
Third, in your project, use the function attribute of AXIS to call the external interface;
Give you a format template:
MobileCodeWSLocator l = new MobileCodeWSLocator(); ///mobilecodewlocator is a client java class generated by WSDL file;
MobileCodeWSSoap s = l . getmobilecodewssoap(); (); ///mobilecodewsoap is a client java class generated by WSDL file.
string m = s . getmobilecodeinfo(" 138 1 1534742 "," ");
If you use the java class generated by Axis, the format is the same as above; Just refer to it yourself.
The connection above you is obviously abnormal, and the third-party service is obviously not opened. WEBSERVICE can set user name and password, just like all web services in our bank, so we should consider security.
- Related articles
- Will Apple Watch always be displayed when it is turned off?
- How to set the whistle for Samsung j7?
- Xinxiang City Center for Disease Control and Prevention urgently reminded March 23, 2022
- Commonly used warm goodnight words
- Will the record of JD.COM's IOUs be recorded in the meeting minutes?
- Is there a charge for texting between Xiaomi devices?
- 100 yuan phone bill how to exchange points with SMS?
- What if I always receive spam messages?
- What is the content of Java training?
- Text message from Zhong Bai Law Firm.