Karen Wilson

Karen Wilson

  • 2k
  • 6
  • 944

how to write a webservice that accepts XML document?

Nov 14 2019 8:55 AM
Write a webservice that accepts the following XML document as the payload:
<Declaration Command="DEFAULT" Version="5.13">
The webservice should respond with a status code which is based on parsing the contents of the XML payload
a. If the XML document is given here is passed then return a status of ‘0’ – which means the document was structured correctly.
b. If the Declararation’s Command <> ‘DEFAULT’ then return ‘-1’ – which means invalid command specified.
c. If the SiteID <> ‘DUB’ then return ‘-2’ – invalid Site specified.

Brought to you by:

Answers (1)