I have a request data which I am getting from some third party, which is in XML. I want to pass this data to C# from postman.
Request XML is as below :
<n0:MassMatchQCResponseMsg xmlns:prx="urn:sap.com:proxy:TST:/1SAI/TASF64A312341D275609721:740" xmlns:n0="http://example.com/compxref/abctype">
<MassMatchDet>
<InputProductNumber>456141</InputProductNumber>
</MassMatchDet>
</n0:MassMatchQCResponseMsg>
Here, If I remove namespace alias n0 and post XML, its working fine with the following C# method.
[HttpPost]
public IActionResult Post([FromBody]MassMatchQCResponseMsg value)
{
}
but with n0, its showing status 500:Internal server error and fails. Can someone please tell me how to parse xml with namespace from Postman in C#.