{"id":110140,"date":"2024-03-22T16:40:12","date_gmt":"2024-03-22T07:40:12","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-05T00:32:15","modified_gmt":"2024-04-04T15:32:15","slug":"web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/","title":{"rendered":"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5"},"content":{"rendered":"<p>Web\u30b5\u30fc\u30d3\u30b9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Java\u8a00\u8a9e\u3092\u4f8b\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>wsimport<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> com.example.webservice.HelloWorld;\r\n<span class=\"hljs-keyword\">import<\/span> com.example.webservice.HelloWorldService;\r\n\r\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Main<\/span> {\r\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title function_\">main<\/span><span class=\"hljs-params\">(String[] args)<\/span> {\r\n        <span class=\"hljs-type\">HelloWorldService<\/span> <span class=\"hljs-variable\">service<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">HelloWorldService<\/span>();\r\n        <span class=\"hljs-type\">HelloWorld<\/span> <span class=\"hljs-variable\">port<\/span> <span class=\"hljs-operator\">=<\/span> service.getHelloWorldPort();\r\n        <span class=\"hljs-type\">String<\/span> <span class=\"hljs-variable\">result<\/span> <span class=\"hljs-operator\">=<\/span> port.sayHello(<span class=\"hljs-string\">\"World\"<\/span>);\r\n        System.out.println(result);\r\n    }\r\n}\r\n<\/code><\/pre>\n<ol>\n<li>Apache CXF\u3092\u4f7f\u7528\u3057\u3066\uff1aApache CXF\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30c8\u30b3\u30eb\u3068\u30c7\u30fc\u30bf\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eWeb\u30b5\u30fc\u30d3\u30b9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u6700\u521d\u306b\u3001 CXF\u304c\u63d0\u4f9b\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u306b\u751f\u6210\u3055\u308c\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001 WebService\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> com.example.webservice.HelloWorld;\r\n<span class=\"hljs-keyword\">import<\/span> org.apache.cxf.jaxws.JaxWsProxyFactoryBean;\r\n\r\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Main<\/span> {\r\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title function_\">main<\/span><span class=\"hljs-params\">(String[] args)<\/span> {\r\n        <span class=\"hljs-type\">JaxWsProxyFactoryBean<\/span> <span class=\"hljs-variable\">factory<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">JaxWsProxyFactoryBean<\/span>();\r\n        factory.setServiceClass(HelloWorld.class);\r\n        factory.setAddress(<span class=\"hljs-string\">\"http:\/\/localhost:8080\/HelloWorld\"<\/span>);\r\n        <span class=\"hljs-type\">HelloWorld<\/span> <span class=\"hljs-variable\">port<\/span> <span class=\"hljs-operator\">=<\/span> (HelloWorld) factory.create();\r\n        <span class=\"hljs-type\">String<\/span> <span class=\"hljs-variable\">result<\/span> <span class=\"hljs-operator\">=<\/span> port.sayHello(<span class=\"hljs-string\">\"World\"<\/span>);\r\n        System.out.println(result);\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u5177\u4f53\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u306f\u3001\u4f7f\u7528\u8a00\u8a9e\u3068\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u4f9d\u5b58\u3057\u3001\u4e00\u822c\u7684\u306a WebService \u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059 2 \u3064\u306e\u65b9\u6cd5\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web\u30b5\u30fc\u30d3\u30b9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Java\u8a00\u8a9e\u3092\u4f8b\u306b\u8aac\u660e\u3057\u307e\u3059\u3002 wsimport import com.example.webservice.HelloWorld; import [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-110140","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/web\u30b5\u30fc\u30d3\u30b9api\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Web\u30b5\u30fc\u30d3\u30b9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Java\u8a00\u8a9e\u3092\u4f8b\u306b\u8aac\u660e\u3057\u307e\u3059\u3002 wsimport import com.example.webservice.HelloWorld; import [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/web\u30b5\u30fc\u30d3\u30b9api\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-22T07:40:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T15:32:15+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/\",\"name\":\"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-22T07:40:12+00:00\",\"dateModified\":\"2024-04-04T15:32:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/web\u30b5\u30fc\u30d3\u30b9api\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5","og_description":"Web\u30b5\u30fc\u30d3\u30b9\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Java\u8a00\u8a9e\u3092\u4f8b\u306b\u8aac\u660e\u3057\u307e\u3059\u3002 wsimport import com.example.webservice.HelloWorld; import [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/web\u30b5\u30fc\u30d3\u30b9api\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-22T07:40:12+00:00","article_modified_time":"2024-04-04T15:32:15+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/","name":"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-22T07:40:12+00:00","dateModified":"2024-04-04T15:32:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Web\u30b5\u30fc\u30d3\u30b9API\u306e\u547c\u3073\u51fa\u3057\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/web%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9api%e3%81%ae%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=110140"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110140\/revisions"}],"predecessor-version":[{"id":300167,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/110140\/revisions\/300167"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=110140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=110140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=110140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}