Which two statements are true about creating a Web service with JAX-WS? (Choose two

Which two statements are true about creating a Web service with JAX-WS? (Choose two.)

Which two statements are true about creating a Web service with JAX-WS? (Choose two.)

A.
Stateless Web services must be created with HTTP servlet endpoints.

B.
Creating the portable artifacts by hand is slow, but makes a service easier to maintain.

C.
All Java-based endpoints share a common packaging model.

D.
EJBs can serve as endpoints if hosted in a container with runtime and service support.

E.
JAX-WS supports creating services from source and compiled code without a WSDL.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


leo yu

leo yu

A) is incorrect, stateless web service could be published via standalone endpoint like “Endpoint.publish(url, web service implementation)”.
B) is incorrect: irrelevant to this question
C) is incorrect
D) is correct, soap web service could be over EJB via anotation @webservice
E) is correct, annotation like @webservice, @webmethod(optional) can turn the POJO,EJB to the web service