2018 SOAP(1)Introduction and Build the Client/Server from WSDL

本文介绍了如何从WSDL文件构建SOAP服务,包括使用wsimport生成客户端代码、搭建Tomcat服务器并发布服务。此外还提供了多个参考资料和技术链接。
2018 SOAP(1)Introduction and Build the Client/Server from WSDL

Recently, deal with SOAP, it drives me back to 2004 in Alibaba. SOAP services. Old days.

Generate the JAVA client codes from WSDL
http://sillycat.iteye.com/blog/716791
http://sillycat.iteye.com/blog/2229813
http://sillycat.iteye.com/blog/2230083

wsimport is installed if we have jdk 8.
> wsimport -version
wsimport version "2.2.9"

Try to generate the client and check the API
> wsimport -keep -verbose -B-XautoNameResolution -s src/main/java/ -p com.lifesize.servicessoapexport.ws https://directory.starleaf.com/dir?wsdl


Try to build Service from WSDL
Download Tomcat 9.0.6, Set up that and start with Dynamic Web Project
Give project a name services.soapexport.server.java, all the way “Next”

Select on the Project, say “New” —> “Web Service”
“Top Down Java Bean Web Service”
“Browse” and put the WSDL URL there
Start Service for Server side, No client for Client side

Check Publish the web service and Monitor the web service, all the way “Next” —> “Finish"

Visit page http://localhost:8080/services.soapexport.server.java/services/PhoneBookServiceSoap?wsdl

References:
https://github.com/vpulim/node-soap
https://github.com/RobinBuschmann/soap-typescript

Some JAVA Related SOAP
http://sillycat.iteye.com/blog/2229813
http://sillycat.iteye.com/blog/2230083

http://sillycat.iteye.com/blog/1555080

http://sillycat.iteye.com/blog/1276828
http://sillycat.iteye.com/blog/990330

http://sillycat.iteye.com/blog/563748
http://sillycat.iteye.com/blog/716791
http://sillycat.iteye.com/blog/837803
http://sillycat.iteye.com/blog/841804

Start a SOAP Server from WSDL
https://wiki.eclipse.org/Creating_a_Top-Down_Java_Web_Service_Skeleton_from_a_WSDL_Document
https://docs.oracle.com/cd/E19509-01/820-7006/ghyto/index.html
https://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_52/jdtut_11r2_52_3.html
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值