{"id":6361,"date":"2019-01-16T21:38:15","date_gmt":"2019-01-16T12:38:15","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=6361"},"modified":"2023-04-29T06:03:58","modified_gmt":"2023-04-28T21:03:58","slug":"%e3%80%90c%e3%80%91%e3%80%8cwcf%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=6361","title":{"rendered":"\u3010C#\u3011\u300cWCF\u30b5\u30fc\u30d3\u30b9\u300d\u3084\u300c\u30b5\u30fc\u30d3\u30b9\u5fd7\u5411\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>WCF\u3068\u306f\uff1f<\/h2>\n<p>\u300cWindows Communication Foundation\u300d\u306e\u7565\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u5fd7\u5411\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u305f\u3081\u306e\u5206\u6563\u578b\u306e\u901a\u4fe1\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p>.NET Framework3.0(2006\u5e74)\u304b\u3089\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30b5\u30fc\u30d3\u30b9\u5fd7\u5411\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306f\uff1f<\/h2>\n<p>\u30b7\u30b9\u30c6\u30e0\u9023\u643a\u3068\u3057\u3066\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u305f\u6280\u8853\u3068\u3057\u3066\u306f\u30012000\u5e74\u4ee3\u306f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5fd7\u5411\uff08Java\u306eEJB\u3001CORBA\u7b49\uff09\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u30012010\u5e74\u9803\u304b\u3089\u306f<span style=\"color: #ff0000;\"><strong>\u30b5\u30fc\u30d3\u30b9\u5fd7\u5411\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/strong><\/span>\u304c\u6d41\u884c\u306e\u5148\u7aef\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5148\u99c6\u3051\u3068\u306a\u3063\u305f\u6280\u8853\u3068\u3057\u3066\u306f\u3001<span style=\"color: #ff0000;\"><strong>SOAP<\/strong><\/span>\u3067\u3057\u305f\u3002<\/p>\n<p>WCF\u306f\u3001SOAP\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u6d41\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u6280\u8853\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>WCF\u306e\u69cb\u6210\u8981\u7d20<\/h2>\n<ul>\n<li>\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/li>\n<li>\u30b3\u30f3\u30c8\u30e9\u30af\u30c8<\/li>\n<li>\u30d3\u30d8\u30a4\u30d3\u30a2<\/li>\n<\/ul>\n<h3>\u30a2\u30c9\u30ec\u30b9<\/h3>\n<p>URL\u306b\u3088\u3063\u3066\u30b5\u30fc\u30d3\u30b9\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/h3>\n<p>\u3069\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u3063\u305f\u308a\u3001\u53d7\u3051\u53d6\u308b\u306e\u304b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30f3\u30c8\u30e9\u30af\u30c8<\/h3>\n<p>\u516c\u958b\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3001\u5229\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3001\u4ea4\u63db\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u4f55\u304b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d3\u30d8\u30a4\u30d3\u30a2<\/h3>\n<p>\u30b5\u30fc\u30d3\u30b9\u3084\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u52d5\u4f5c\u3092\u5b9f\u884c\u6642\u306b\u4fee\u6b63\u3059\u308b\u5f79\u5272\u3002<\/p>\n<h2>C#\u3067WCF\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408<\/h2>\n<h3>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e<\/h3>\n<h4>WCF\u30b5\u30fc\u30d3\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea<\/h4>\n<p>\u30db\u30b9\u30c8\u304c\u53c2\u7167\u53ca\u3073\u8d77\u52d5\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n<h4>WCF\u30b5\u30fc\u30d3\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/h4>\n<p>\u3059\u3067\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u308b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u30db\u30b9\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002IIS\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u306a\u3089\u30b3\u30c1\u30e9\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e<\/h3>\n<h4>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\uff08IService.cs\uff09<\/h4>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9a\u7fa9\u3057\u305f\u30af\u30e9\u30b9\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u9aa8\u683c\u306e\u90e8\u5206\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002<\/p>\n<h4>\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\uff08Service.svc.cs\uff09<\/h4>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u7d99\u627f\u3057\u305f\u30af\u30e9\u30b9\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u5b9f\u4f53\u3092\u3053\u3053\u306b\u5b9f\u88c5\u3057\u3066\u3044\u304f\u3002<\/p>\n<h4>Service.svc<\/h4>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5165\u308a\u53e3\u3068\u306a\u308b\u3002URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u3002<\/p>\n<h4>Web.config<\/h4>\n<p>WCF\u306e\u57fa\u672c\u3068\u306a\u308b\u3001\u30a2\u30c9\u30ec\u30b9\u3001\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3001\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306e\u60c5\u5831\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<h3>\u4ed8\u4e0e\u3055\u308c\u308b\u5c5e\u6027\u4e00\u89a7<\/h3>\n<table>\n<tbody>\n<tr>\n<td>\u5c5e\u6027\u540d<\/td>\n<td>\u8aac\u660e<\/td>\n<\/tr>\n<tr>\n<td>ServiceContract<\/td>\n<td>\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u3001WCF\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3092\u793a\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>OperationContract<\/td>\n<td>\u30b5\u30fc\u30d3\u30b9\u306b\u542b\u307e\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u793a\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"WCF\u3068\u306f\uff1f \u300cWindows Communication Foundation\u300d\u306e\u7565\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u5fd7\u5411\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u305f\u3081\u306e\u5206\u6563\u578b\u306e\u901a\u4fe1\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002 .NET Framework3.0(2006\u5e74)\u304b\u3089\u5c0e\u5165 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[158],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6361"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6361"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6361\/revisions"}],"predecessor-version":[{"id":6369,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/6361\/revisions\/6369"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6361"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}