Pulling data from XML file api I want to register.
but I get an error as follows:
ERROR
Satir 101: if (inputStream.CanRead)
Satir 102: {
Satir 103: using (Stream outputStream = File.OpenWrite(fileName)) //ERROR LiNE
Satir 104: {
Satir 105: byte[] buffer = new byte[4096];
protected void Button1_Click(object sender, EventArgs e)
{
string idInfo = "aa:text:20150224:4630439"; // sample news info
bool isDownloadSuccess = DownloadRemoteFile("https://api.aa.com.tr/abone/document/" + idInfo + "/print", "/newsml29.xml", "xxx:xxx");
}
private bool DownloadRemoteFile(string uri, string fileName, string credential)
{
HttpWebRequest req ...
Go to the complete details ...