A developer is creating a Web service from the WSDL file, using IBM Rational Application Developer: When creating a top-down JavaBean, which of the following artifacts would be generated?
A. Service Endpoint Interface and Implementation class only
B. Service Endpoint Interface and GetAccountBalance.java, GetAccountBalanceResponse.java
C. Service Endpoint Interface, Implementation class, GetAccountBalance.java, GetAccountBalanceResponse.java
D. Implementation class, GetAccountBalance.java, GetAccountBalanceResponse.java
Which statement is TRUE?
A. Returning true from the handle Message() method tells the JAX-WS runtime that processing of the handler chain should end.
B. Returning true from the handle Message() method tells the JAX-WS runtime that processing should move to the next handler in the chain
C. The handle Message() method should be replaced by handle Request() andhandleResponse() methods for a JAX-WS runtime
D. The signature of handle Message should be public void handle Message(LogicalMessageContext context)
A developer is using the Web container programming model as per JSR109. Which statement regarding the Service Implementation Bean is true?
A. The class can be final
B. The class must define finalize() method
C. The class must have a default public constructor
D. The class can save client specific state across method calls using instance variables
JSR109 defines the life cycle of a Service Implementation Bean in the Web container.
Which sequence of statements below is TRUE?
A. 1. The Web container calls the method annotated with javax.annotation.PostConstruct annotation.
2.
The web container creates a new instance of the Service Implementation Bean.
3.
The web container may pool method ready instances of a Service Implementation Bean and
dispatch a method request on any instance in a method ready state.
4.
For the web container with JAX-WS runtime, the method annotated javax.annotation. Pre Destroy is called.
B. 1. The web container creates a new instance of the Service Implementation Bean.
2.
For web containers with JAX-WS runtime, the container calls the method annotate with
javax.annotation.PostConstruct annotation.
3.
The web container may pool method ready instances of a Service Implementation Bean and
dispatch a method request on any instance in a method ready state.
4.
For the web container with JAX-WS runtime, the method annotated with javax.annotation.
PreDestroy is called.
C. 1. The web container creates a new instance of the Service Implementation Bean.
2.
For web containers with JAX-WS runtime, the container calls the method annotated with
javax.annotation.PostConstruct annotation.
3.
The web container may pool method ready instances of a Service Implementation Bean and
dispatch a method request on any instance in a method ready state.
4.
For the web container with JAX-WS runtime, the method annotated with javax.annotation.
PrePassivate. is called.
D. 1. The Web container calls the method annotated with javax.annotation.PostActivate annotation.
2.
The container creates a new instance of the Service Implementation Bean.
3.
The web container may pool method ready instances of a Service Implementation Bean and
dispatch a method request on any instance in a method ready state.
4.
For the web container with JAX-WS runtime, the method annotated with javax.annotation.
PrePassivate is called.
A developer would like to create a generic endpoint implementation to handle XML-based Web service and use it to host multiple endpoints.
Which of the following annotations would BEST be used to support that Service Implementation Bean?
A. @Web Method
B. @Web Service
C. @Service Mode
D. @WebServiceProvider
Which of the following are ways to add or customize an HTTP header to a Web service request in IBM Web Sphere Application ServerV7.0.
A. Specify the values to be set on a policy set and attach the policy set to the client reference
B. Use a JAX-WS Logical Handler and get/set the HTTP headers from the JAXWSMessageContext
C. Use a JAX-WS Protocol Handler and get/set the HTTP headers from the JAX-WS Message Context
D. Create a Hash Map containing the transport headers and set the Hash Map on theJAX- WS Service under a property named REQUEST_TRANSPORT_PROPERTIES
E. Create a Hash Map containing the transport headers and set the Hash Map on the JAX- WS Binding Provider under a property namedREQUEST_TRANSPORT_PROPERTIES
A developer is writing a Web service operation namedgetQuote?Select the proper code to obtain the HTTP Query String used in the request:
A. public String get Quote (String input String, Message Context mc) { mc.get (MessageContext.QUERY_STRING); ...
B. public String get Quote (String input String, WebServiceContext wc) { wc.getMessageContext().get (MessageContext.QUERY_STRING); ...
C. @Resource private WebServiceContext context; Public String get Quote (String input String) { context.getMessageContext().get(MessageContext.QUERY_STRING); ...
D. @WebServiceContext private WebServiceContext context; Public String get Quote (String input String) {context.getMessageContext().get(MessageContext.QUERY_STRING); ...
E. @Resource private Resource context; Public String get Quote (String input String) { ((Message Context)context).get(MessageContext.QUERY_STRING); ...
Which one of the mechanisms CANNOT be used directly by the JAX-WS dynamic APIs for Dispatch or Provider?
A. Source
B. Data Source
C. Input Stream
D. JAXB Objects
E. SOAP Message
A developer has a Web service-enabled EnterpriseJavaBean Java archive (JAR) module within an EAR file.
Which of the following command line tools will add one or more router modules to the EAR file?
A. Wsadmin
B. Wsdeploy
C. Ejbdeploy
D. Endptenabler
Which one of the following is NOT a standard property of the Binding Provider class from the JAX-WS API?
A. The SOAP Action
B. The endpoint address
C. A timeout value for the HTTP request
D. The ability to maintain HTTP session state
E. A username and password for basic authentication
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C9510-319 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.