11.07.2015 Views

Anyframe CXF JAX-WS Plugin

Anyframe CXF JAX-WS Plugin

Anyframe CXF JAX-WS Plugin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.<strong>JAX</strong>-<strong>WS</strong> FrontendThis is a Frontend model that enables implementation of Web Services through Annotation using <strong>JAX</strong>-<strong>WS</strong>, a Web Services standard API.<strong>JAX</strong>-<strong>WS</strong> (Java API for XML Web Services) is a JAVA API to develop Web Services, as a part of Java EE. LikeJava API of another Java EE, <strong>JAX</strong>-<strong>WS</strong> uses Annotation adopted at Java SE 5 and eases the developmentand deployment of Web Service client and server module. <strong>JAX</strong>-<strong>WS</strong>, a developed concept of <strong>JAX</strong>-RPCstandard, is a Web Service standard integrated and developed based on <strong>JAX</strong>B standard for XML binding,SAX standard for standard streaming parser, and a new SAAJ standard with enhanced functions. <strong>JAX</strong>-<strong>WS</strong> is characterized by the following.• More convenient to develop Web Services than <strong>JAX</strong>-RPCCompared with <strong>JAX</strong>-RPC, developing Web Services is much more convenient. Developing Web ServiceEndpoint and mapping between Java type and <strong>WS</strong>DL can be performed explicitly through Annotationsetting. By replacing Web Service deployment descriptor which had to be developed to create WebServices in <strong>JAX</strong>-RPC environment with Annotation, difficulties with developing Web Services aresignificantly reduced.• Task through AnnotationHandles mapping between Java and <strong>WS</strong>DL, and schema-type mapping between Java type andmessage referred to by <strong>WS</strong>DL. Provides necessary information among runtime process handling WebService messages and is used to respond to calling Web Services.• Annotation-related Spec.Annotation used in <strong>JAX</strong>-<strong>WS</strong> 2.x is separately defined in Web Services Metadata(JSR-181) Spec.and <strong>JAX</strong>-<strong>WS</strong> 2.x Spec. Annotation used in other message-type mapping is defined in <strong>JAX</strong>B2.x Spec. Representative annotation defined in Web Services Metadata(JSR-181) Spec. is asfollows. (javax.jws.WebService, javax.jws.WebMethod, javax.jws.WebParam, javax.jws.WebResult,javax.jws.soap.SOAPBinding)The following figure shows <strong>JAX</strong>-<strong>WS</strong> process.The following are instructions on how to use <strong>JAX</strong>-<strong>WS</strong> Frontend in server and client layer. <strong>JAX</strong>-<strong>WS</strong> Frontendcan develop server and client mainly by two ways: using Frontend API or using Spring Configuration.• Server Configuration1. Web Service development19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!