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
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
Some JAVA Related SOAP
Start a SOAP Server from WSDL