Azure / azure-sdk-for-media-services

Azure SDK for Media Services
65 stars 65 forks source link

Rest API Support For PCL (Portable Class Library) #139

Open pottabathini opened 8 years ago

pottabathini commented 8 years ago

We are using Azure Media Services Rest API in PCL by following your Rest API sample Project (Program.cs file)

//The response is in JSON so create a JSON reader to read it //and convert it to XML for further processing var reader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(responseString), new XmlDictionaryReaderQuotas()); xmlResponse = new XmlDocument(); reader.Read(); xmlResponse.LoadXml(reader.ReadInnerXml());

We are able to migrate all of your code to PCL except above few lines, those lines are very important for us when we are trying to get publish URL. because of above code not working we are not able to get the publish URL as XMLDocument is null

I want you guys please re-write above few lines of code in PCL to work as soon as possible.

PS: we already tried using newtonsoft.net but it is not able to convert to XMLDocument. Give us a tested version of code if possible :-)

pottabathini commented 8 years ago

can any one please replay me soon