<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomute</author_name>
  <author_url>https://blog.hatena.ne.jp/tomute/</author_url>
  <blog_title>tomute's note</blog_title>
  <blog_url>https://tomute.hateblo.jp/</blog_url>
  <categories>
    <anon>WebService</anon>
    <anon>C#</anon>
  </categories>
  <description>以前にJAX-WSを利用してベーシック認証が設定されているWebサービスへアクセスする方法を書いたが、今回はC#.NETを利用した場合の方法を以下に記載する。 なお、以下の例はVisual Studio 2005 or 2008の「Web参照の追加」メニューからWebサービスクライアント用のプロキシクラスを自動生成した場合の例である。 string result; MyService service = new MyService(); service.Credentials = new NetworkCredential(&quot;username&quot;, &quot;password&quot;); // ベーシック認証…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomute.hateblo.jp%2Fentry%2F20100218%2F1266543152&quot; title=&quot; ベーシック認証が設定されているWebサービスへのアクセス方法（C#編） - tomute&amp;#39;s note&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-02-18 10:32:32</published>
  <title> ベーシック認証が設定されているWebサービスへのアクセス方法（C#編）</title>
  <type>rich</type>
  <url>https://tomute.hateblo.jp/entry/20100218/1266543152</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
