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
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...
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.