Hello DougS,
Thank you for your reply,
I'm use standard .NET deserialization for deserilizing Lithium REST API responses.
Here is brief example of Image entity:
[Serializable, XmlType(AnonymousType = true)]
public class Image : EntityBase
{
[XmlElement("url")]
public string Url { get; set; }
[XmlElement("upload_date")]
public DateTime UploadDate { get; set; }
[XmlElement("height", typeof(XmlInteger))]
public int? Height { get; set; }
[XmlElement("width", typeof(XmlInteger))]
public int? Width { get; set; }
[XmlElement("title")]
public string Title { get; set; }
[XmlElement("description")]
public string Description { get; set; }
[XmlElement("thumbnail")]
public Image Thumbnail { get; set; }
}
For deserializing string to Image entity I'm uisng
XmlSerializer.Deserialize
standard XML deserializer method.
It works pretty well for all other REST API calls, and I don't expect that image uploading is an exception.
But I guess that something goes wrong when Lithium gererate image URL,
because I saw a couple of times URLs like the following:
http://%CommunityName%.stage.lithium.com/t5/image/serverpage/image-id/137i286D3365B41F7E77?v=mpbl-1%2fimage-dimensions%2f64x36%3fv%3dmpbl-1