I see that the string starting with an empty space on a parameter decorated with XmlText is missing the space on roundtrip to service.
Request:
<Person xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" LastName="Rav"><Item> Din</Item></Person>
Please see the space here in <Item> Din</Item> before 'Din'. It is missing in response. It comes as
Response:
<Person xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" LastName="Rav"><Item>Din</Item></Person>
I see that the xmlserializer by itself is working fine. Even objectcontent is also by itself working fine but not when HttpClient sending the message to service.