API Failed with the error “DeserializationFailed” in Save Product in API Payload

API Failed with the error “DeserializationFailed” in Save Product in API Payload

Environment :

iVend 6.6 

Problem Statement :

To Save the product in via API Payload getting the error in the response file.


Warning

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

   <s:Body>

      <s:Fault>

         <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</faultcode>

         <faultstring xml:lang="en-US">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://www.iVend.com/IIntegrationService/2010/12:product. The InnerException message was 'There was an error deserializing the object of type CXS.Retail.DTO.ProductDTO. Unexpected end of file. Following elements are not closed: Description, product, SaveProduct, Body, Envelope.


Resolution/Work Around :

User users special characters in data. In the item description there is sign “+” and “&”.

After removing the special character user can able to save product.