I am getting a response from an API in soap, I have my models all mapped, however do i need to add the namespaces using [XMLElement(Namespace ="someuri")] to deserialize, and if so how do i add the headers which add the namespaces?
Or can i be lazy and just map the models to match the structure?
Could you share your models and your soap response and show your specific code so that we could learn more about your requirement?
Best regards,
Ackerly Xu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Participant
1861 Points
2836 Posts
Lazy XML deserialize question
Aug 10, 2018 01:18 AM|EnenDaveyBoy|LINK
Hi
I am getting a response from an API in soap, I have my models all mapped, however do i need to add the namespaces using [XMLElement(Namespace ="someuri")] to deserialize, and if so how do i add the headers which add the namespaces?
Or can i be lazy and just map the models to match the structure?
Contributor
3500 Points
1300 Posts
Re: Lazy XML deserialize question
Aug 10, 2018 09:55 AM|Ackerly Xu|LINK
Hi EnenDaveyBoy,
Could you share your models and your soap response and show your specific code so that we could learn more about your requirement?
Best regards,
Ackerly Xu
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Participant
1861 Points
2836 Posts
Re: Lazy XML deserialize question
Aug 14, 2018 09:51 AM|EnenDaveyBoy|LINK
the answer in my case at least is yes.