<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.schweda.net/style_feed.css" ?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:atom="http://www.w3.org/2005/Atom"	
	xmlns:dc="http://purl.org/dc/elements/1.1/" > 
<channel>
    <title>schweda.net - Blog</title>
    <link>https://www.schweda.net/</link>
    <description>schweda.net - Blog - Blog-Beitraege</description>
    <language>de-at</language>
    <copyright>Copyright 2006-2026</copyright>
    <generator>schweda.net</generator>
    <managingEditor>heinz.schweda@schweda.net (Heinz Schweda)</managingEditor>
    <webMaster>heinz.schweda@schweda.net (Heinz Schweda)</webMaster>
    <category>Blog</category>
	<atom:link href="https://www.schweda.net/blog_rss.php?bid=384" rel="self" type="application/rss+xml" />
<item>
<title><![CDATA[Auslesen von HTML-Quelltext in Dynamics AX 2009]]></title>
<description><![CDATA[
<p>Vor kurzem wurde ich gefragt, wie man denn in Dynamics AX 2009 den HTML-Quelltext einer Webseite ausliest. Bittesch&ouml;n...
</p>

<div class="div_blog_axcode">static void GetHTMLSourceCode(Args _args)<br />
{<br />
&nbsp;&nbsp;&nbsp; CLRObject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; castObject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = null;<br />
&nbsp;&nbsp;&nbsp; System.Net.HttpWebRequest&nbsp;&nbsp; request&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = null;<br />
&nbsp;&nbsp;&nbsp; System.Net.HttpWebResponse&nbsp; response&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = null;<br />
&nbsp;&nbsp;&nbsp; System.IO.StreamReader&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; streamReader&nbsp;&nbsp;&nbsp; = null;<br />
&nbsp;&nbsp;&nbsp; System.Text.Encoding&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encoding&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = null; <br />
<br />
&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url = &quot;http://www.yourdomain.com/yoursite.html&quot;;<br />
&nbsp;&nbsp;&nbsp; ;<br />
&nbsp;&nbsp;&nbsp; new InteropPermission(InteropKind::ClrInterop).assert();<br />
&nbsp;&nbsp;&nbsp; castObject = System.Net.WebRequest::Create(url);<br />
&nbsp;&nbsp;&nbsp; request = castObject;<br />
&nbsp;&nbsp;&nbsp; response = request.GetResponse();<br />
&nbsp;&nbsp;&nbsp; encoding = System.Text.Encoding::get_UTF8();<br />
&nbsp;&nbsp;&nbsp; streamReader = new System.IO.StreamReader(response.GetResponseStream(), encoding);<br />
&nbsp;&nbsp;&nbsp; info(streamReader.ReadToEnd());<br />
}
</div>]]></description>
<category>Microsoft Dynamics AX (Axapta)</category>
<pubDate>Thu, 12 Aug 2010 19:33:00 +0200</pubDate>
<link>https://www.schweda.net/blog_ax.php?bid=384</link>
<comments>https://www.schweda.net/blog_ax.php?bid=384</comments>
<guid isPermaLink="true">https://www.schweda.net/blog_ax.php?bid=384</guid>
<author>heinz.schweda@schweda.net (Heinz Schweda)</author>
<wfw:commentRss>https://www.schweda.net/blog_ax.php?bid=384</wfw:commentRss>
</item>
</channel>
</rss>	
