Multiple choice technology architecture

You are using Dispatch API for invoking a JAX-WS dynamic service. Which of the following information must be supplied to client, before invoking the service?Choose one answer.

  1. XML Schema document and details of Message Body is required to build a client.

  2. WSDL document and Message headers must be supplied.

  3. There is no need to supply WSDL or XML Schema document to the client.

  4. Both WSDL document and XML Schema document must be supplied to the client.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The JAX-WS Dispatch API allows dynamic service invocation without requiring compile-time WSDL or XML Schema. The Dispatch interface works directly with XML or SOAP messages, making it possible to invoke services when only the service endpoint and message structure are known at runtime. This is in contrast to static proxy generation which requires WSDL at development time.