DEV Community

Discussion on: Webservices using Java 10

Collapse
 
dankwansere profile image
Dankwansere

I would recommend using a library such as the ones I mentioned from my previous post to create web services(Rest or SOAP) in java. The benefit of libraries is that the dependencies of the java versions are usually taken care for you.

However if you want to use pure jdk tools for creating the webservice then you can use the javax.xml.soap API

docs.oracle.com/javase/10/docs/api...

Thread Thread
 
karytricia profile image
Carla Augusto

Using the javax.xml.soap API directly doesn't work. It only works if I use the --add-modules option.

However, this solution is for Java 9 and Java 10 only. For later versions it won't work as the Java EE related modules will be entirely removed from Java SE.

Thanks for your reply.