PrepAway - Latest Free Exam Questions & Answers

What should you do?

You write a Web service that is called by two client applications named Client1 and Client2.

The Web service must return a SOAP header that contains the date and time that the method executed.
You discover that the date and time information for Client1 must be stored in a different XML format from the format used for Client2.
The client application that is making the request is specified as a property of the SOAP header.
You need to ensure that date and time information is stored in the correct format for each client application.
Your solution must not change the way that ASP.NET handles SOAP requests.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the SoapElementAttribute attribute with the correct element name for the client application to the field that contains the date and time information.

B.
Change the EncodedRelay property to the name of the method that will create the correct XML formatting for each client application.

C.
Implement the IXmlSerializable interface in the SOAP header class to return the correct XML format for each client application in the WriteXml method.

D.
Create two XmlSerializer classes and use the WriteHeaders method of the SoapHeaderHandling class to format the XML for each client application.


Leave a Reply