读书人

怎么开发一个Service

发布时间: 2013-07-11 15:38:46 作者: rapoo

如何开发一个Service

Here's a simple example:

@WebServiceProviderpublic class HelloProvider {??public Source invoke(Source request) {????return ....;??}}

Services are publish via one of two means:

The JAX-WS standard Endpoint APIsCXF's XML configuration format - i.e. <jaxws:endpoint ... />

More Information: Developing a JAX-WS Service

Javascript

CXF provides a Javascript module which allows you to build services in Javascript with the Java Rhino library. One advantage of this is that you can use E4X to interact more easily with the XML. For more information see the JavaScript page.

?

?

读书人网 >开源软件

热点推荐