<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>c# ile xml gönderme | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<atom:link href="https://www.sanaldata.com/e/c-ile-xml-gonderme/feed" rel="self" type="application/rss+xml" />
	<link>https://www.sanaldata.com</link>
	<description>Yazılım ve teknoloji üzerine her türlü makaleye ulaşabileceğiniz site</description>
	<lastBuildDate>Mon, 16 May 2016 07:25:16 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.sanaldata.com/wp-content/uploads/2016/11/cropped-logo-32x32.png</url>
	<title>c# ile xml gönderme | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<link>https://www.sanaldata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>C# ile xml post etme</title>
		<link>https://www.sanaldata.com/c-ile-xml-post-etme</link>
					<comments>https://www.sanaldata.com/c-ile-xml-post-etme#respond</comments>
		
		<dc:creator><![CDATA[Burak]]></dc:creator>
		<pubDate>Mon, 16 May 2016 07:03:35 +0000</pubDate>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[c# ile veri gönderme]]></category>
		<category><![CDATA[c# ile xml gönderme]]></category>
		<guid isPermaLink="false">https://www.sanaldata.com/?p=149</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar belki sizlere lazım olabilir c# ile belirtilen url ye xml post etme işlemi öncelikle aşağıdaki kütüphaneleri include ediyoruz. [crayon-69ece533f3fcd312662124/] Daha sonra post edicek kodlarımız ise aşağıdaki gibidir ; [crayon-69ece533f3fe0932543817/]</p>
The post <a href="https://www.sanaldata.com/c-ile-xml-post-etme">C# ile xml post etme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar belki sizlere lazım olabilir c# ile belirtilen url ye xml post etme işlemi öncelikle aşağıdaki kütüphaneleri include ediyoruz.</p><pre class="urvanov-syntax-highlighter-plain-tag">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Configuration;
using System.Net;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.IO;
using Microsoft.Win32;
using System.Web;</pre><p>Daha sonra post edicek kodlarımız ise aşağıdaki gibidir ;</p><pre class="urvanov-syntax-highlighter-plain-tag">xml="&lt;SingleTextSMS&gt;";
            xml += "&lt;UserName&gt;test&lt;/UserName&gt;";
            xml += "&lt;PassWord&gt;test&lt;/PassWord&gt;";
                   
            //xml post başla

            string webpageContent = string.Empty;

            try
            {
                byte[] byteArray = Encoding.UTF8.GetBytes("data="+xml);

                HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("url adresi");
                webRequest.Method = "POST";
                webRequest.ContentType = "application/x-www-form-urlencoded";
                webRequest.ContentLength = byteArray.Length;

                using (Stream webpageStream = webRequest.GetRequestStream())
                {
                    webpageStream.Write(byteArray, 0, byteArray.Length);
                }

                using (HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse())
                {
                    using (StreamReader reader = new StreamReader(webResponse.GetResponseStream()))
                    {
                        webpageContent = reader.ReadToEnd();
                    }
                }
            }
            catch (Exception ex)
            {

                webpageContent = ex.Message;
            }


            MessageBox.Show(webpageContent);</pre><p></p>The post <a href="https://www.sanaldata.com/c-ile-xml-post-etme">C# ile xml post etme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.sanaldata.com/c-ile-xml-post-etme/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
