I need to develop a web api MVC REST service to consume XML from a third party.
The project has been created using CodeFirst Entity Framework based on a sample XML file.
I received test XML files for the update, post and delete, to my surprise the root xml element differs per method.
The POST root is CreateSomething The PUT root is UpdateSometing
In the model I created the root is always CreateSomething, for all methods.
Do I need to create extra models for the different method? Or is there another way to get around this?
Hope I made my problem clear.
Thanks in advance
Regards
No comments:
Post a Comment