JAX-WS Outside of App Server
I'm trying to learn about JAX-W开发者_开发技巧S, specifically using WSDLs in Java.
I want to use a small footprint WebServer/Tool (Not a full blown App Server). Any suggestions on where to start? Specific tools/technologies/tutorials/websites would be appreciated.
Most of what I have found has dealt with App Servers.
The most lightweight solution would be to just use the server provided by JDK6 itself:
import javax.xml.ws.Endpoint;
public static void main(String[] args) {
Endpoint.publish(
"http://localhost:8080/WebServiceExample/circlefunctions",
new CircleFunctions());
}
At least for testing that could be useful.
If you have the WSDL then you can learn the client programming model without the need for AppServier. All you need is the SoapUI tool. It can act as a MockServer for your WSDL.
精彩评论