Java API for XML based RPC (JAX-RPC)
-
Can be used to generate server side and client side Java (Web Service) code from a WSDL
-
Can be used to generate a WSDL from Java (Web Service) code
-
None
-
Both
JAX-RPC supports both code generation directions: from WSDL to Java (client/server stubs) and from Java to WSDL. This bidirectional support enables both top-down (start with WSDL) and bottom-up (start with Java) web service development approaches.
To answer this question, let's go through each option to understand why it is correct or incorrect:
Option A) Can be used to generate server-side and client-side Java (Web Service) code from a WSDL - This option is correct. JAX-RPC can be used to generate Java code (Web Service) from a WSDL file.
Option B) Can be used to generate a WSDL from Java (Web Service) code - This option is incorrect. JAX-RPC does not provide the functionality to generate a WSDL from Java code.
Option C) None - This option is incorrect. JAX-RPC does have functionalities and can be used for generating server-side and client-side Java (Web Service) code.
Option D) Both - This option is correct. JAX-RPC can be used to generate server-side and client-side Java (Web Service) code from a WSDL.
The correct answer is D) Both. This option is correct because JAX-RPC can be used to generate server-side and client-side Java (Web Service) code from a WSDL.