MB-500 · Question #330
A company uses Dynamics 365 Finance. The company requires you to create a custom service. You need to create request and response classes for the custom service. Which class attribute should you use?
The correct answer is A. DataContract. To create request and response classes for a custom service in Dynamics 365 Finance, you need to use the DataContract attribute. This attribute is used to define the structure of the data that will be sent and received by the service, allowing for serialization and…
Question
Options
- ADataContract
- BDataEventHandler
- CDataCollection
How the community answered
(38 responses)- A95% (36)
- B3% (1)
- C3% (1)
Explanation
To create request and response classes for a custom service in Dynamics 365 Finance, you need to use the DataContract attribute. This attribute is used to define the structure of the data that will be sent and received by the service, allowing for serialization and deserialization of the class during service execution. DataContract is applied to classes to define them as data contracts for services. The other options (DataEventHandler and DataCollection) are not relevant for defining request and response classes for custom services.
Topics
Community Discussion
No community discussion yet for this question.