Service model

Service model

The Service model, in a true sense, models your service. It is a framework of 

components that represents a service in a WSDL-like model. It provides functionality 

to create various WSDL elements such as operations, bindings, endpoints,  

schema, and so on. 

The components of the Service model can be used to create a service. 

ServiceInfo is comprised of the following components that more or less represent 

WSDL elements:

• InterfaceInfo

• OperationInfo

• MessageInfo

• BindingInfo

• EndpointInfo

A web service is usually created using one of the frontends offered by CXF. It can  

be either constructed from a Java class or from a WSDL. 

CXF frontends internally use the service model to create web services. For 

example, by using a simple frontend, we can create, publish, and consume 

web services through factory components such as ServerFactoryBean and 

ClientProxyFactoryBean. These factory classes internally use the service 

model of CXF.

猜你喜欢

转载自zsjg13.iteye.com/blog/2190648
今日推荐