Copyright © 2012 Mikalai Zaikin
July 2012
Revision History | ||
---|---|---|
Revision $Revision: 122 $ | $Date: 2012-07-22 00:31:25 +0300 (нд, 22 Ліп 2012) $ | $Author: mzaikin $ |
$Id: ocewsd6-quiz.xml 122 2012-07-21 21:31:25Z mzaikin $ |
Abstract
The purpose of this document is to help in preparation for Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam (CX-310-232).
This document should not be used as the only study material for Oracle Certified Expert, Java Platform, Enterprise Edition 6 Web Services Developer Test. It might cover not all objective topics, and it might be not enough. I tried to make this document as much accurate as possible, but if you find any error, please let me know.
wsimport
tool to generate artifacts from WSDL
<jaxws:package>
, <jaxws:enableWrapperStyle>
,
<jaxws:class>
customizations
MessageContext.SERVLET_CONTEXT
from the injected WebServiceContext
web.xml
, webservices.xml
) for URL patterns, HTTP security,
container authorization, caller authentication, and message protection. JAX-WS runtime may also be configured to
perform message layer authentication and protection.
@WebService
to indicate a service
@WebMethod
, @WebMethod(exclude)
to indicate service methods
@SOAPBinding
to select doc/lit, doc/bare, rpc/lit style of web service
@Oneway
where the service doesn't have any response
@WebParam
, and @WebResult
to customize parameter and operation names
wsgen
tool to generate artifacts in Java EE5 (optional in Java EE6, as artifacts are generated at
run time).
web.xml
, webservices.xml
) for URL patterns, HTTP security,
container authorization, caller authentication, and message protection. JAX-WS runtime may also be configured to perform
message layer authentication and protection.
@Path
annotation to respond to URI templates.
@GET
, @POST
, etc.).
@Consumes
and @Produces
annotations to specify the input and output formats
for the RESTful Web Service.
@PathParam
, @QueryParam
, @MatrixParam
and @HeaderParam
to
extract request data.
UriInfo
and UriBuilder
to create URIs that refer to resources in the service.
ResponseBuilder
to create response with customized status and additional metadata.
MessageBodyReader
and MessageBodyWriter
to add support for custom request
and response data types
ExceptionMapper
to map a custom Exception
to a response.
Request
to add support for HTTP preconditions.
@Path
on a method to define a subresource.
web.xml
) for base URL pattern, HTTP security (via
security-constraints
in web.xml
)
wsimport
tool to generate artifacts and use customization files for wsimports if needed
@Stateless
or @Singleton
)
ejb-jar.xml
, webservices.xml
) for transactions, etc.
ejb-jar.xml
or via access
control annotations on EJB.
web.xml
, and/or
by JAX-WS message processing runtime.
wsgen
tool to generate artifacts in Java EE5 from EJB classes (optional in Java EE 6 - as artifacts
are generated at run time).
ejb-jar.xml
, webservices.xml
) for transactions, etc.
ejb-jar.xml
or via access control
annotations on EJB.
web.xml
, and/or by
JAX-WS message processing runtime.
@Path
annotation to respond to URL patterns.
@GET
, @POST
, etc.).
@Produces
and @Consumes
annotations to specify the input and output resources
for the RESTful Web Service.
ejb-jar.xml
or via access
control annotations on EJB.
web.xml
.
web.xml
, webservices.xml
) for
a Servlet-based web service endpoint: container authorization, caller authentication, and message protection. JAX-WS
runtime may also be configured to perform message layer authentication and protection.
ejb-jar.xml
, webservices.xml
)
for EJB-based web service endpoint:
web.xml
) for JAX-RS based web service endpoint.
java.net.*
APIs to access a JAX-RS resource.
java.net.Authenticator
to access a secure JAX-RS resource.
Provider
API to create a web service.
Dispatch
API to create a dynamic web service client.
@Addressing
annotation with a web service
wsam:Addressing
policy in WSDL
AddressingFeature
with javax.xml.ws.Endpoint
API.
@Action
and @FaultAction
on the service methods.
WebServiceContext.getEndpointReference()
![]() ![]() ![]() |