{"id":232207,"date":"2021-12-25T09:56:12","date_gmt":"2021-12-25T01:56:12","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=232207"},"modified":"2021-12-17T10:56:43","modified_gmt":"2021-12-17T02:56:43","slug":"understand-the-wsdl","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/understand-the-wsdl.html","title":{"rendered":"\u4e86\u89e3\u4e0bWSDL \u6587\u6863"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nWSDL \u6587\u6863\u4ec5\u4ec5\u662f\u4e00\u4e2a\u7b80\u5355\u7684 XML \u6587\u6863\u3002\u5b83\u5305\u542b\u4e00\u7cfb\u5217\u63cf\u8ff0\u67d0\u4e2a web service \u7684\u5b9a\u4e49\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

WSDL \u6587\u6863\u7ed3\u6784<\/strong><\/div>\n

WSDL \u6587\u6863\u662f\u5229\u7528\u8fd9\u4e9b\u4e3b\u8981\u7684\u5143\u7d20\u6765\u63cf\u8ff0\u67d0\u4e2a web service \u7684\uff1a<\/p>\n\n\n\n\n\n\n\n
\u5143\u7d20<\/th>\n\u5b9a\u4e49<\/th>\n<\/tr>\n
<portType><\/td>\nweb service \u6267\u884c\u7684\u64cd\u4f5c<\/td>\n<\/tr>\n
<message><\/td>\nweb service \u4f7f\u7528\u7684\u6d88\u606f<\/td>\n<\/tr>\n
<types><\/td>\nweb service \u4f7f\u7528\u7684\u6570\u636e\u7c7b\u578b<\/td>\n<\/tr>\n
<binding><\/td>\nweb service \u4f7f\u7528\u7684\u901a\u4fe1\u534f\u8bae<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4e00\u4e2a WSDL \u6587\u6863\u7684\u4e3b\u8981\u7ed3\u6784\u662f\u7c7b\u4f3c\u8fd9\u6837\u7684\uff1a<\/p>\n

WSDL \u6587\u6863\u5b9e\u4f8b<\/strong><\/p>\n

<<\/span>definitions<\/span>><\/span>\r\n \r\n<\/span><<\/span>types<\/span>><\/span>\r\n data type definitions........\r\n<\/span><\/<\/span>types<\/span>><\/span>\r\n \r\n<\/span><<\/span>message<\/span>><\/span>\r\n definition of the data being communicated....\r\n<\/span><\/<\/span>message<\/span>><\/span>\r\n \r\n<\/span><<\/span>portType<\/span>><\/span>\r\n set of operations......\r\n<\/span><\/<\/span>portType<\/span>><\/span>\r\n \r\n<\/span><<\/span>binding<\/span>><\/span>\r\n protocol and data format specification....\r\n<\/span><\/<\/span>binding<\/span>><\/span>\r\n \r\n<\/span><\/<\/span>definitions<\/span>><\/span><\/div><\/pre>\n

WSDL \u6587\u6863\u53ef\u5305\u542b\u5176\u5b83\u7684\u5143\u7d20\uff0c\u6bd4\u5982 extension \u5143\u7d20\uff0c\u4ee5\u53ca\u4e00\u4e2a service \u5143\u7d20\uff0c\u6b64\u5143\u7d20\u53ef\u628a\u82e5\u5e72\u4e2a web services \u7684\u5b9a\u4e49\u7ec4\u5408\u5728\u4e00\u4e2a\u5355\u4e00\u7684 WSDL \u6587\u6863\u4e2d\u3002<\/p>\n

WSDL \u7aef\u53e3<\/strong><\/div>\n

<portType> \u5143\u7d20\u662f\u6700\u91cd\u8981\u7684 WSDL \u5143\u7d20\u3002<\/p>\n

\u5b83\u53ef\u63cf\u8ff0\u4e00\u4e2a web service\u3001\u53ef\u88ab\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u4ee5\u53ca\u76f8\u5173\u7684\u6d88\u606f\u3002<\/p>\n

\u53ef\u4ee5\u628a <portType> \u5143\u7d20\u6bd4\u4f5c\u4f20\u7edf\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684\u4e00\u4e2a\u51fd\u6570\u5e93\uff08\u6216\u4e00\u4e2a\u6a21\u5757\u3001\u6216\u4e00\u4e2a\u7c7b\uff09\u3002<\/p>\n

WSDL \u6d88\u606f<\/strong><\/div>\n

<message> \u5143\u7d20\u5b9a\u4e49\u4e00\u4e2a\u64cd\u4f5c\u7684\u6570\u636e\u5143\u7d20\u3002<\/p>\n

\u6bcf\u4e2a\u6d88\u606f\u5747\u7531\u4e00\u4e2a\u6216\u591a\u4e2a\u90e8\u4ef6\u7ec4\u6210\u3002\u53ef\u4ee5\u628a\u8fd9\u4e9b\u90e8\u4ef6\u6bd4\u4f5c\u4f20\u7edf\u7f16\u7a0b\u8bed\u8a00\u4e2d\u4e00\u4e2a\u51fd\u6570\u8c03\u7528\u7684\u53c2\u6570\u3002<\/p>\n

WSDL types<\/strong><\/div>\n

<types> \u5143\u7d20\u5b9a\u4e49 web service \u4f7f\u7528\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n

\u4e3a\u4e86\u6700\u5927\u7a0b\u5ea6\u7684\u5e73\u53f0\u4e2d\u7acb\u6027\uff0cWSDL \u4f7f\u7528 XML Schema \u8bed\u6cd5\u6765\u5b9a\u4e49\u6570\u636e\u7c7b\u578b\u3002<\/p>\n

WSDL Bindings<\/strong><\/div>\n

<binding> \u5143\u7d20\u4e3a\u6bcf\u4e2a\u7aef\u53e3\u5b9a\u4e49\u6d88\u606f\u683c\u5f0f\u548c\u534f\u8bae\u7ec6\u8282\u3002<\/p>\n

WSDL \u5b9e\u4f8b<\/strong><\/div>\n

\u8fd9\u662f\u67d0\u4e2a WSDL \u6587\u6863\u7684\u7b80\u5316\u7684\u7247\u6bb5\uff1a
\n\u5b9e\u4f8b<\/strong><\/p>\n

<<\/span>message<\/span> <\/span>name<\/span>=<\/span>\"<\/span>getTermRequest<\/span>\"<\/span>><\/span>\r\n  <\/span><<\/span>part<\/span> <\/span>name<\/span>=<\/span>\"<\/span>term<\/span>\"<\/span> <\/span>type<\/span>=<\/span>\"<\/span>xs:string<\/span>\"<\/span>\/><\/span>\r\n<\/span><\/<\/span>message<\/span>><\/span>\r\n \r\n<\/span><<\/span>message<\/span> <\/span>name<\/span>=<\/span>\"<\/span>getTermResponse<\/span>\"<\/span>><\/span>\r\n  <\/span><<\/span>part<\/span> <\/span>name<\/span>=<\/span>\"<\/span>value<\/span>\"<\/span> <\/span>type<\/span>=<\/span>\"<\/span>xs:string<\/span>\"<\/span>\/><\/span>\r\n<\/span><\/<\/span>message<\/span>><\/span>\r\n \r\n<\/span><<\/span>portType<\/span> <\/span>name<\/span>=<\/span>\"<\/span>glossaryTerms<\/span>\"<\/span>><\/span>\r\n  <\/span><<\/span>operation<\/span> <\/span>name<\/span>=<\/span>\"<\/span>getTerm<\/span>\"<\/span>><\/span>\r\n    <\/span><<\/span>input<\/span> <\/span>message<\/span>=<\/span>\"<\/span>getTermRequest<\/span>\"<\/span>\/><\/span>\r\n    <\/span><<\/span>output<\/span> <\/span>message<\/span>=<\/span>\"<\/span>getTermResponse<\/span>\"<\/span>\/><\/span>\r\n  <\/span><\/<\/span>operation<\/span>><\/span>\r\n<\/span><\/<\/span>portType<\/span>><\/span><\/pre>\n

\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<portType> \u5143\u7d20\u628a \"glossaryTerms\" \u5b9a\u4e49\u4e3a\u67d0\u4e2a\u7aef\u53e3\u7684\u540d\u79f0\uff0c\u628a \"getTerm\" \u5b9a\u4e49\u4e3a\u67d0\u4e2a\u64cd\u4f5c\u7684\u540d\u79f0\u3002<\/p>\n

\u64cd\u4f5c \"getTerm\" \u62e5\u6709\u4e00\u4e2a\u540d\u4e3a \"getTermRequest\" \u7684\u8f93\u5165\u6d88\u606f\uff0c\u4ee5\u53ca\u4e00\u4e2a\u540d\u4e3a \"getTermResponse\" \u7684\u8f93\u51fa\u6d88\u606f\u3002<\/p>\n

<message> \u5143\u7d20\u53ef\u5b9a\u4e49\u6bcf\u4e2a\u6d88\u606f\u7684\u90e8\u4ef6\uff0c\u4ee5\u53ca\u76f8\u5173\u8054\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n

\u5bf9\u6bd4\u4f20\u7edf\u7684\u7f16\u7a0b\uff0cglossaryTerms \u662f\u4e00\u4e2a\u51fd\u6570\u5e93\uff0c\u800c \"getTerm\" \u662f\u5e26\u6709\u8f93\u5165\u53c2\u6570 \"getTermRequest\" \u548c\u8fd4\u56de\u53c2\u6570 getTermResponse \u7684\u4e00\u4e2a\u51fd\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

WSDL \u6587\u6863\u662f\u5229\u7528\u8fd9\u4e9b\u4e3b\u8981\u7684\u5143\u7d20\u6765\u63cf\u8ff0\u67d0\u4e2a web service \u7684\uff1a \u5143\u7d20 \u5b9a\u4e49 <portTyp […]<\/p>\n","protected":false},"author":321,"featured_media":232208,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-232207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=232207"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232207\/revisions"}],"predecessor-version":[{"id":232213,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232207\/revisions\/232213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/232208"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=232207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=232207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=232207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}