TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karen Wilson
NA
6
2.1k
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:
<InputDocument>
<DeclarationList>
<Declaration Command="DEFAULT" Version="5.13">
<DeclarationHeader>
<Jurisdiction>IE</Jurisdiction>
<CWProcedure>IMPORT</CWProcedure>
<DeclarationDestination>CUSTOMSWAREIE</DeclarationDestination>
<DocumentRef>71Q0019681</DocumentRef>
<SiteID>DUB</SiteID>
<AccountCode>G0779837</AccountCode>
</DeclarationHeader>
</Declaration>
</DeclarationList>
</InputDocument>
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.
Reply
Answers (
1
)
Send Message Using Whatsap API With C# have You any Idea?
Asp Core Cascade Drop Down List without using Entity framewo