I want to build simple SOAP web service. So far I’ve only worked with existing SOAP/Rest services. And now I’d like to create my own, simple one for starters.
For example create simple hello + string web service where I provide the string in request from SOAP ui or similar tool.
I have Jboss server installed already, what is the “simplest” possible way to achieve this? I realize I need interface, interfaceImpl, and a wsdl file(generated possibly).
Does anyone have some useful advice for me ? thank you
If you want something extremely straight forward, use JAX-WS and a Java first approach. Here is what a Hello world web service looks like:
Java 6 includes JAX-WS RI, an implementation of JAX-WS, so you can run this code as is and test it with SAOP-UI (the generated WSDL is available at http://localhost:8081/hello?WSDL).
JBoss supports JAX-WS through a native stack – but you can also use Apache CXF or Metro (Metro = JAX-WS RI + WSIT). Check JBossWS for more details. I suggest to start with their native stack.
See also