■たまたま遭遇したWCFがいろいろあるサイト
http://blogs.wankuma.com/nakamura/category/1930.aspx?Show=All
珍しい。なかなかいい情報がないから。
■WCFの単体テスト
以下のサイトが簡単にできるコードをおいている(未実施)
http://tnakamura.hatenablog.com/entry/20090821/wcf_service_scope
■WCFのException
WCF は例外を握りつぶしてしまうので注意。
以下、詳細。
http://tnakamura.hatenablog.com/entry/20090901/wcf_exception
■WCFの容量
サーバ --> クライアント
サーバ <-- クライアント
両方の向きで通信容量の制限があり、デフォルトは
65536
5テーブルくらいをデータセットで返すとすぐあふれる。
クライアント:app.config(フォームの場合)
サーバ :Web.config
それぞれに、値を設定する必要がある。
<binding name="BasicHttpBinding_I****Service" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="1073741824" maxBufferSize="1073741824" maxReceivedMessageSize="1073741824" transferMode="Buffered" useDefaultWebProxy="true" messageEncoding="Mtom"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding>
また、サービスごとにこれを設定する必要がある。