{"id":328986,"date":"2022-02-03T09:00:17","date_gmt":"2022-02-03T09:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=328986"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=328986","title":{"rendered":"<span>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 SOAP-\u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 WSO2<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>\u043f\u043e\u0441\u0442\u0435<\/u><\/a> \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 WSO2 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 REST API-\u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0442\u0435\u043c\u0443: \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c, \u043a\u0430\u043a \u043c\u044b \u0432 WSO2 \u0441\u043e\u0437\u0434\u0430\u0435\u043c SOAP-\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0434\u0435\u043b\u0430\u044e \u0430\u043a\u0446\u0435\u043d\u0442 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043e\u0431\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0441\u0442 \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>REST API<\/u><\/a>.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"294\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e4\/6e9\/890\/0e46e98909a5811bc21b115dd6774c4b.png\" data-width=\"1485\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 WSO2 Integration Studio \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (File \u2013 New \u2013 Integration Project). \u041d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Rosstat Service. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c RegistryResources, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 SOAP-\u0441\u0435\u0440\u0432\u0438\u0441 \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 WSDL\/XSD, \u0430 \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0433\u0434\u0435-\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"597\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a2d\/9ca\/2d5\/a2d9ca2d5e914fbcd28134c1fbf264f8.png\" data-width=\"507\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &#171;.gitkeep&#187; \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"379\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e8f\/a9e\/967\/e8fa9e9676dc5d7818e9604512dfdb11.png\" data-width=\"248\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0441\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f WSO2 Nexus \u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 &#171;pom.xml&#187; \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0432\u0430\u0448\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435. \u0423 \u043d\u0430\u0441, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <a href=\"https:\/\/maven.wso2.org\/nexus\/content\/groups\/wso2-public\/\">https:\/\/maven.wso2.org\/nexus\/content\/groups\/wso2-public\/<\/a>\u202f\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 <a href=\"https:\/\/nexus.gts.rus.socgen\/repository\/maven-wso2-public\/\">https:\/\/nexus.gts.rus.socgen\/repository\/maven-wso2-public\/<\/a>.<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c <em>\u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 CallAPI<\/em>.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"57\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7c5\/4e9\/efe\/7c54e9efe3dbc582a0d8fe430ac782d1.png\" data-width=\"249\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0442\u0438\u043f\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c Sequence Template. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435, \u043a\u0430\u043a \u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 REST API-\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c SOAP, \u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c REST:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"MOEX_callAPI_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setCallEndpointName\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setEndpointURL\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setEndpointURL_Suffix\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setQueryParams\"\/>   &lt;sequence>       &lt;property expression=\"get-property('file', $func:setEndpointURL)\" name=\"ENV_ENDPOINT_URL\" scope=\"default\" type=\"STRING\"\/>       &lt;filter regex=\"true\" source=\"boolean($ctx:ENV_ENDPOINT_URL) and string-length($ctx:ENV_ENDPOINT_URL) > 0\">           &lt;then\/>           &lt;else>               &lt;property expression=\"get-property('env', $func:setEndpointURL)\" name=\"ENV_ENDPOINT_URL\" scope=\"default\" type=\"STRING\"\/>           &lt;\/else>     &lt;\/filter>       &lt;switch source=\"boolean($func:setQueryParams) and string-length($func:setQueryParams) > 0\">           &lt;case regex=\"true\">               &lt;property expression=\"fn:concat($ctx:ENV_ENDPOINT_URL, $func:setEndpointURL_Suffix, '?', $func:setQueryParams)\" name=\"uri.var.endpointURL_FullAddress\" scope=\"default\" type=\"STRING\"\/>           &lt;\/case>           &lt;default>             &lt;property expression=\"fn:concat($ctx:ENV_ENDPOINT_URL, $func:setEndpointURL_Suffix)\" name=\"uri.var.endpointURL_FullAddress\" scope=\"default\" type=\"STRING\"\/>           &lt;\/default>     &lt;\/switch>     &lt;class description=\"OutReqLoggerTXT\" name=\"ru.rosbank.mediator.LoggerMediatorTXT\">           &lt;property name=\"logLevel\" value=\"DEBUG\"\/>           &lt;property name=\"ReqType\" value=\"OutRequest\"\/>           &lt;property expression=\"fn:concat('sending request to endpointURL_FullAddress=', $ctx:uri.var.endpointURL_FullAddress)\" name=\"Payload\"\/>       &lt;\/class>       &lt;call>           &lt;endpoint key-expression=\"$func:setCallEndpointName\"\/>       &lt;\/call>   &lt;\/sequence>   &lt;\/template> <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c <em>\u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a SOAPFault<\/em>. \u0417\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 SOAP \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, 1.1 \u0438\u043b\u0438 1.2. \u041e\u0442 \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f ContentType. \u0412\u043e\u0442 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043b\u044f SOAP 1.1:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"Rosstat_SOAPFault_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"MessageID\"\/>  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"ErrorText\"\/>  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"Exception\"\/>  &lt;sequence>      &lt;payloadFactory description=\"ExceptionPayload\" media-type=\"xml\">          &lt;format>              &lt;m:Exception xmlns:m=\"http:\/\/wso2.rosbank.ru\/types\/Fault\">                  &lt;msgID xmlns=\"\">$1&lt;\/msgID>                  &lt;text xmlns=\"\">$2&lt;\/text>                  &lt;exception xmlns=\"\">$3&lt;\/exception>              &lt;\/m:Exception>          &lt;\/format>          &lt;args>              &lt;arg evaluator=\"xml\" expression=\"$func:MessageID\"\/>              &lt;arg evaluator=\"xml\" expression=\"$func:ErrorText\"\/>              &lt;arg evaluator=\"xml\" expression=\"$func:Exception\"\/>          &lt;\/args>      &lt;\/payloadFactory>      &lt;enrich description=\"body to property\">          &lt;source clone=\"true\" type=\"body\"\/>          &lt;target property=\"MESSAGE_PAYLOAD\" type=\"property\"\/>      &lt;\/enrich>      &lt;makefault description=\"SoapFault\" version=\"soap11\">          &lt;code value=\"soap11Env:Server\" xmlns:soap11Env=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"\/>          &lt;reason value=\"Error message processing\"\/>          &lt;detail expression=\"get-property('MESSAGE_PAYLOAD')\"\/>      &lt;\/makefault>      &lt;propertyGroup description=\"removeHeaders\">          &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>          &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>      &lt;\/propertyGroup>      &lt;propertyGroup description=\"setHeaders\">          &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"500\"\/>          &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"Internal Server Error\"\/>          &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap11\"\/>          &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>          &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>          &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"text\/xml;charset=UTF-8\"\/>          &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>      &lt;\/propertyGroup>  &lt;\/sequence>  &lt;\/template><\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 XML-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c id, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0435\u0435 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043b\u043e\u0433\u0430\u0445. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e SOAP \u0434\u043b\u044f SOAPFault: <code>description=\"SoapFault\" version=\"soap11\"<\/code>.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043b\u044f SOAP 1.2:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"Rosstat_SOAPFault_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">      &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"MessageID\"\/>     &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"ErrorText\"\/>     &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"Exception\"\/>     &lt;sequence>         &lt;payloadFactory description=\"ExceptionPayload\" media-type=\"xml\">             &lt;format>                 &lt;m:Exception xmlns:m=\"http:\/\/wso2.rosbank.ru\/types\/Fault\">                     &lt;msgID xmlns=\"\">$1&lt;\/msgID>                     &lt;text xmlns=\"\">$2&lt;\/text>                     &lt;exception xmlns=\"\">$3&lt;\/exception>                 &lt;\/m:Exception>             &lt;\/format>             &lt;args>                 &lt;arg evaluator=\"xml\" expression=\"$func:MessageID\"\/>                 &lt;arg evaluator=\"xml\" expression=\"$func:ErrorText\"\/>                 &lt;arg evaluator=\"xml\" expression=\"$func:Exception\"\/>             &lt;\/args>         &lt;\/payloadFactory>         &lt;enrich description=\"body to property\">             &lt;source clone=\"true\" type=\"body\"\/>             &lt;target property=\"MESSAGE_PAYLOAD\" type=\"property\"\/>         &lt;\/enrich>         &lt;makefault description=\"SoapFault\" version=\"soap12\">             &lt;code value=\"soap12Env:Receiver\" xmlns:soap12Env=\"http:\/\/www.w3.org\/2003\/05\/soap-envelope\"\/>             &lt;reason value=\"Error message processing\"\/>             &lt;detail expression=\"get-property('MESSAGE_PAYLOAD')\"\/>         &lt;\/makefault>         &lt;propertyGroup description=\"removeHeaders\">             &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>             &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>         &lt;\/propertyGroup>         &lt;propertyGroup description=\"setHeaders\">             &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"500\"\/>             &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"Internal Server Error\"\/>             &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap12\"\/>             &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"application\/soap+xml\"\/>             &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"application\/soap+xml\"\/>             &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"application\/soap+xml;charset=UTF-8\"\/>             &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>         &lt;\/propertyGroup>     &lt;\/sequence> &lt;\/template><\/code><\/pre>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0433\u0438 \u2014 Sequence \u2014\u00a0\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"164\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8f3\/071\/612\/8f3071612cbf45986058e6a70e0618b2.png\" data-width=\"363\"\/><figcaption><\/figcaption><\/figure>\n<p>FaultSequence \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d SOAPFault, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438:\u00a0<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"180\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/082\/163\/979\/082163979cbe70affeb5ba744e5705dc.png\" data-width=\"676\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Inbound \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_InboundSequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;propertyGroup description=\"setProperty\">      &lt;property name=\"ENV_SERVICE_NAME\" scope=\"default\" type=\"STRING\" value=\"RosstatService\"\/>      &lt;property expression=\"$axis2:TransportInURL\" name=\"ENV_REST_URL_POSTFIX\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"fn:substring-after(get-property('MessageID'), 'uuid:')\" name=\"ENV_MESSAGE_ID\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"local-name(\/\/soapenv:Envelope\/soapenv:Body\/*[1])\" name=\"ENV_METHOD_NAME\" scope=\"default\" type=\"STRING\" xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"\/>      &lt;property expression=\"fn:substring-after($axis2:TransportInURL, '?')\" name=\"ENV_QUERY_PARAMS\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"string('')\" name=\"ENV_EMPTY_STRING\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"$axis2:REMOTE_ADDR\" name=\"ENV_IP_ADDRESS\" scope=\"default\" type=\"STRING\"\/>  &lt;\/propertyGroup>  &lt;class description=\"InReqLoggerTXT\" name=\"ru.rosbank.mediator.LoggerMediatorTXT\">      &lt;property name=\"logLevel\" value=\"DEBUG\"\/>      &lt;property name=\"ReqType\" value=\"Begin\"\/>      &lt;property name=\"Payload\" value=\"Request accepted...\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 ENV_SERVICE_NAME \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u042d\u0442\u043e \u0436\u0435 \u0438\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 LoggerService \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043b\u043e\u0433\u043e\u0432 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 &#171;onError&#187; \u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a: <code>onError=\"Rosstat_FaultSequence\"<\/code>.<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u0442 REST. \u0421\u0433\u0435\u043d\u0438\u0440\u0438\u0440\u043e\u0432\u0430\u0432 uuid, \u043c\u044b \u0438\u0434\u0435\u043c \u0432 SOAP Envelope \u2013 Body \u0438 \u043e\u0442\u0442\u0443\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430. \u0412 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 SOAP \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u0435\u043b\u0435.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c Outbound \u2014 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u044c \u0432 \u043b\u043e\u0433 \u0444\u0430\u043a\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_OutboundSequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;class description=\"InResLoggerTXT\" name=\"ru.rosbank.mediator.LoggerMediatorTXT\">      &lt;property name=\"logLevel\" value=\"DEBUG\"\/>      &lt;property name=\"ReqType\" value=\"End\"\/>      &lt;property name=\"Payload\" value=\"Request processed success\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 REST API. <em>UnsupportedSequence<\/em> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u0442\u043e\u0434 \u0431\u044b\u043b \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0432 WSDL, \u043d\u043e \u043d\u0435 \u0431\u044b\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d (\u0438\u043b\u0438 \u043c\u044b \u0441\u0430\u043c\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u0435\u0433\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c).\u00a0<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"179\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/90b\/342\/564\/90b342564aaccef5d71b162cdb1d68f7.png\" data-width=\"427\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0442\u043e\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d SOAPFault. \u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u043c\u044b \u0432\u044b\u0434\u0430\u0435\u043c \u00abUnsupported service\u00bb:<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_UnsupportedService_Sequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;class description=\"InReqLoggerSOAP\" name=\"ru.rosbank.mediator.LoggerMediatorSOAP\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"InRequest\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;call-template description=\"SoapFault\" target=\"Rosstat_SOAPFault_Template\">      &lt;with-param name=\"MessageID\" value=\"{$ctx:ENV_MESSAGE_ID}\"\/>      &lt;with-param name=\"ErrorText\" value=\"Unsupported service\"\/>      &lt;with-param name=\"Exception\" value=\"{$ctx:ENV_EMPTY_STRING}\"\/>  &lt;\/call-template>  &lt;class description=\"InResLoggerSOAP\" name=\"ru.rosbank.mediator.LoggerMediatorSOAP\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"InResponse\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432 REST API \u2014 <em>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 (\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438) GetOrganizationInfo<\/em>. \u0412 REST API \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>&lt;resource><\/code>, \u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0438\u043d\u0430\u0447\u0435.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"164\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c73\/0ce\/1eb\/c730ce1eb9f86e1e5cdf9c9e0c6d2e6c.png\" data-width=\"365\"\/><figcaption><\/figcaption><\/figure>\n<p>\u00a0\u041b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c HTPP-\u0441\u0435\u0440\u0432\u0438\u0441 \u0438 \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442:\u00a0<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_GetOrganizationInfo_Sequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;class description=\"InReqLoggerSOAP\" name=\"ru.rosbank.mediator.LoggerMediatorSOAP\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"InRequest\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;sequence key=\"Rosstat_GetOrganizationInfo_HTTPRequest_Sequence\"\/>  &lt;class description=\"InResLoggerSOAP\" name=\"ru.rosbank.mediator.LoggerMediatorSOAP\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"InResponse\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"426\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1f8\/ae2\/ddf\/1f8ae2ddfaf6469ab93c4d3d904a65df.png\" data-width=\"1130\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u043c SOAP \u0432 JSON, \u0437\u0430\u0434\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445 \u043f\u043e\u043b\u0435\u0439 \u0438\u00a0 ContentType, \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c CallTemplate \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u043a\u043e\u0434 200. \u0415\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c sequence \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d SOAPfault:<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_GetOrganizationInfo_HTTPRequest_Sequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;propertyGroup description=\"removeHeaders\">      &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>      &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>  &lt;\/propertyGroup>  &lt;payloadFactory description=\"MappingIn\" media-type=\"json\">      &lt;format>{\"okpo\":\"$1\", \"inn\":\"$2\", \"ogrn\":\"$3\"}&lt;\/format>      &lt;args>          &lt;arg evaluator=\"xml\" expression=\"\/\/p:okpo\/text()\" xmlns:p=\"http:\/\/ru.rosbank.servicemix\/cd\/client\"\/>          &lt;arg evaluator=\"xml\" expression=\"\/\/p:inn\/text()\" xmlns:p=\"http:\/\/ru.rosbank.servicemix\/cd\/client\"\/>          &lt;arg evaluator=\"xml\" expression=\"\/\/p:ogrn\/text()\" xmlns:p=\"http:\/\/ru.rosbank.servicemix\/cd\/client\"\/>      &lt;\/args>  &lt;\/payloadFactory>  &lt;propertyGroup description=\"setHeader\">      &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"application\/json\"\/>  &lt;\/propertyGroup>  &lt;class description=\"OutReqLoggerJSON\" name=\"ru.rosbank.mediator.LoggerMediatorJSON\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"OutRequest\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;call-template description=\"callRosstat\" onError=\"Rosstat_FaultSequence\" target=\"Rosstat_callAPI_Template\">      &lt;with-param name=\"setCallEndpointName\" value=\"Rosstat_GetOrganizationInfo_EP\"\/>      &lt;with-param name=\"setEndpointURL\" value=\"webServiceURL_GetRosstatOrganizationInfo\"\/>      &lt;with-param name=\"setEndpointURL_Suffix\" value=\"\"\/>      &lt;with-param name=\"setQueryParams\" value=\"\"\/>  &lt;\/call-template>  &lt;filter regex=\"200\" source=\"$axis2:HTTP_SC\">      &lt;then>          &lt;class description=\"OutResLoggerJSON\" name=\"ru.rosbank.mediator.LoggerMediatorJSON\">              &lt;property name=\"logLevel\" value=\"INFO\"\/>              &lt;property name=\"ReqType\" value=\"OutResponse\"\/>              &lt;property name=\"isLogHeader\" value=\"true\"\/>              &lt;property name=\"isLogPayload\" value=\"true\"\/>          &lt;\/class>          &lt;sequence key=\"Rosstat_GetOrganizationInfo_MappingOUT_Sequence\"\/>      &lt;\/then>      &lt;else>          &lt;class description=\"OutResLoggerBINARY\" name=\"ru.rosbank.mediator.LoggerMediatorBINARY\">              &lt;property name=\"logLevel\" value=\"INFO\"\/>              &lt;property name=\"ReqType\" value=\"OutResponse\"\/>              &lt;property name=\"isLogHeader\" value=\"true\"\/>              &lt;property name=\"isLogPayload\" value=\"true\"\/>          &lt;\/class>          &lt;call-template description=\"SoapFault\" target=\"Rosstat_SOAPFault_Template\">              &lt;with-param name=\"MessageID\" value=\"{$ctx:ENV_MESSAGE_ID}\"\/>              &lt;with-param name=\"ErrorText\" value=\"GetOrganizationInfo returns non success response\"\/>              &lt;with-param name=\"Exception\" value=\"{fn:concat('Error: ', $axis2:HTTP_SC, ' - ', $axis2:HTTP_SC_DESC)}\"\/>          &lt;\/call-template>      &lt;\/else>  &lt;\/filter>  &lt;\/sequence><\/code><\/pre>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014\u00a0MappingOUT \u2014 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u0437 JSON \u0432 SOAP:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"178\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5e4\/2c8\/a40\/5e42c8a409ed03929f765b986f5a2e1b.png\" data-width=\"552\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 JSON \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043d\u0430\u043c id, type \u0438 name \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c payload \u0434\u043b\u044f xml-\u043a\u0438 SOAPResponse:<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_GetOrganizationInfo_MappingOUT_Sequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;propertyGroup description=\"Group of properties that extract data from response\">      &lt;property expression=\"json-eval($.[0].id)\" name=\"id\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"json-eval($.[0].type)\" name=\"type\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"json-eval($.[0].name)\" name=\"name\" scope=\"default\" type=\"STRING\"\/>          &lt;!-- \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u044b, \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0447\u0442\u0435\u043d\u0438\u044f -->  &lt;\/propertyGroup>  &lt;payloadFactory description=\"SOAPResponse\" media-type=\"xml\">      &lt;format>          &lt;soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">              &lt;soapenv:Body>                  &lt;p:RosstatOrganizationInfoResponse xmlns:p=\"http:\/\/ru.rosbank.servicemix\/cd\/client\">                      &lt;p:id>$1&lt;\/p:id>                      &lt;p:type>$2&lt;\/p:type>                      &lt;p:name>$3&lt;\/p:name>                  &lt;\/p:RosstatOrganizationInfoResponse>              &lt;\/soapenv:Body>          &lt;\/soapenv:Envelope>      &lt;\/format>      &lt;args>          &lt;arg evaluator=\"xml\" expression=\"get-property('id')\"\/>          &lt;arg evaluator=\"xml\" expression=\"get-property('type')\"\/>          &lt;arg evaluator=\"xml\" expression=\"get-property('name')\"\/>      &lt;\/args>  &lt;\/payloadFactory>  &lt;propertyGroup description=\"removeHeaders\">      &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>      &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>  &lt;\/propertyGroup>  &lt;propertyGroup description=\"setHeaders\">      &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"200\"\/>      &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"OK\"\/>      &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap11\"\/>      &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>      &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>      &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"text\/xml;charset=UTF-8\"\/>      &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>  &lt;\/propertyGroup>  &lt;\/sequence><\/code><\/pre>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438\u0437 REST API, \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f HealthCheck \u2014 \u200b\u200b\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0444\u0438\u043a (Readness Probe). \u041e\u043d \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u0432\u0441\u0451 \u0432 Kubernetes \u0438\u043b\u0438 OpenShift.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"179\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/11c\/b58\/75d\/11cb5875d3cad4ee04f85dbd85974b4c.png\" data-width=\"553\"\/><figcaption><\/figcaption><\/figure>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_HealthRequest_Sequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;propertyGroup description=\"removeHeaders\">      &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>      &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>  &lt;\/propertyGroup>  &lt;payloadFactory description=\"SOAPResponse\" media-type=\"xml\">      &lt;format>          &lt;soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\">              &lt;soapenv:Body>                  &lt;p:HealthResponse xmlns:p=\"http:\/\/ru.rosbank.servicemix\/cd\/client\">                      &lt;p:status>OK&lt;\/p:status>                  &lt;\/p:HealthResponse>              &lt;\/soapenv:Body>          &lt;\/soapenv:Envelope>      &lt;\/format>      &lt;args\/>  &lt;\/payloadFactory>  &lt;propertyGroup description=\"setHeaders\">      &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"200\"\/>      &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"OK\"\/>      &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap11\"\/>      &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>      &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>      &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"text\/xml;charset=UTF-8\"\/>      &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>  &lt;\/propertyGroup>  &lt;class description=\"InResLoggerSOAP\" name=\"ru.rosbank.mediator.LoggerMediatorSOAP\">      &lt;property name=\"logLevel\" value=\"INFO\"\/>      &lt;property name=\"ReqType\" value=\"InResponse\"\/>      &lt;property name=\"isLogHeader\" value=\"true\"\/>      &lt;property name=\"isLogPayload\" value=\"true\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c endpoint \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0451 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0441 <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>REST API<\/u><\/a>.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"39\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/493\/54e\/1b9\/49354e1b98919eccb4ed8ffe13854950.png\" data-width=\"255\"\/><figcaption><\/figcaption><\/figure>\n<pre><code class=\"xml\">&lt;endpoint name=\"Rosstat_GetOrganizationInfo_EP\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;http method=\"post\" uri-template=\"{uri.var.endpointURL_FullAddress}\">      &lt;timeout>          &lt;duration>40000&lt;\/duration>          &lt;responseAction>fault&lt;\/responseAction>      &lt;\/timeout>      &lt;suspendOnFailure>          &lt;errorCodes>101500,101501,101506,101507,101508&lt;\/errorCodes>          &lt;initialDuration>1000&lt;\/initialDuration>          &lt;progressionFactor>2.0&lt;\/progressionFactor>          &lt;maximumDuration>60000&lt;\/maximumDuration>      &lt;\/suspendOnFailure>      &lt;markForSuspension>          &lt;errorCodes>101503,101504,101505&lt;\/errorCodes>          &lt;retriesBeforeSuspension>3&lt;\/retriesBeforeSuspension>          &lt;retryDelay>100&lt;\/retryDelay>      &lt;\/markForSuspension>  &lt;\/http>  &lt;\/endpoint><\/code><\/pre>\n<h3>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c WSDL-\u0444\u0430\u0439\u043b \u0438 XSD-\u0441\u0445\u0435\u043c\u044b<\/h3>\n<p>\u0412 \u043c\u043e\u0434\u0443\u043b\u0435 RosstatServiceRegistryResources (\u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435) \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c New\u202f\u2013 RegistryResource \u0438 \u0432 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u2014\u00a0From existing template.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"275\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/812\/515\/d3a\/812515d3a8918aba651deff58ca144ad.png\" data-width=\"511\"\/><figcaption><\/figcaption><\/figure>\n<p>\u00a0\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.\u00a0<\/p>\n<p><strong>ResourceName<\/strong>: RosstatOrganizationInfo (\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 WSDL \u0431\u0435\u0437 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f)\u00a0<br \/><strong>ArtifactName<\/strong>: RosstatOrganizationInfoWSDL (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0434\u043b\u044f\u202fResourceName, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0443\u0444\u0444\u0438\u043a\u0441 WSDL)<br \/><strong>Template<\/strong>: \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 WSDL File<br \/><strong>Registry<\/strong>: \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c\u202f\u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 conf<br \/><strong>RegistryPath<\/strong>:\u202fresources\/rosstat\/wsdl<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c XSD-\u0441\u0445\u0435\u043c\u044b.<\/p>\n<p><strong>ResourceName:<\/strong> RosstatOrganizationInfo (\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 XSD \u0431\u0435\u0437 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f)<br \/><strong>ArtifactName:<\/strong> RosstatOrganizationInfoXSD (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0434\u043b\u044f\u202f<strong>ResourceName<\/strong>, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0443\u0444\u0444\u0438\u043a\u0441 <strong>XSD<\/strong>)<br \/><strong>Template:<\/strong> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 XSD File<br \/><strong>Registry:<\/strong> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c\u202f\u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 conf<br \/><strong>RegistryPath:<\/strong>\u202fresources\/rosstat\/wsdl<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c ProxyService<\/h3>\n<p>\u0421 SOAP \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u043c\u0438, \u043a\u0440\u043e\u043c\u0435 REST API, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ProxyService. \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 ProxyService, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 Template, Sequence, Endpoint.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"266\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15a\/c72\/5c7\/15ac725c7c369db6e0ad267b680193b2.png\" data-width=\"563\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f Custom Proxy \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b http \u0438 https:\u00a0<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"510\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/43e\/3c6\/fca\/43e3c6fcaadb368c0aab9ae516bcd498.png\" data-width=\"563\"\/><figcaption><\/figcaption><\/figure>\n<p>\u00a0\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 Design ProxyService \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:\u00a0<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"857\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b7\/776\/6fe\/4b77766fec7ef242add373a42cdebc66.png\" data-width=\"1141\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 name \u0443 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 proxy \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u0435\u043c SOAP-\u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432 URL \u043f\u043e\u0441\u043b\u0435 \/services\/: <a href=\"https:\/\/localhost:8253\/services\/RosstatService?wsdl\"><u>https:\/\/localhost:8253\/services\/RosstatService?wsdl<\/u><\/a>. \u041c\u044b \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 \u043a\u043e\u0434 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043e XSD:<\/p>\n<pre><code class=\"xml\">&lt;proxy name=\"RosstatService\" startOnLoad=\"true\" transports=\"http https\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;target>      &lt;inSequence>          &lt;sequence key=\"Rosstat_InboundSequence\"\/>          &lt;validate cache-schema=\"true\">              &lt;schema key=\"conf:resources\/rosstat\/wsdl\/RosstatOrganizationInfo.xsd\"\/>              &lt;on-fail>                  &lt;sequence key=\"Rosstat_FaultSequence\"\/>              &lt;\/on-fail>          &lt;\/validate>          &lt;switch source=\"$ctx:ENV_METHOD_NAME\">              &lt;case regex=\"RosstatOrganizationInfoRequest\">                  &lt;sequence key=\"Rosstat_GetOrganizationInfo_Sequence\"\/>              &lt;\/case>              &lt;case regex=\"HealthRequest\">                  &lt;sequence key=\"Rosstat_HealthRequest_Sequence\"\/>              &lt;\/case>              &lt;default>                  &lt;sequence key=\"Rosstat_UnsupportedService_Sequence\"\/>              &lt;\/default>          &lt;\/switch>          &lt;sequence key=\"Rosstat_OutboundSequence\"\/>          &lt;respond\/>      &lt;\/inSequence>      &lt;outSequence\/>      &lt;faultSequence>          &lt;sequence key=\"Rosstat_FaultSequence\"\/>      &lt;\/faultSequence>  &lt;\/target>  &lt;publishWSDL key=\"conf:resources\/rosstat\/wsdl\/RosstatOrganizationInfo.wsdl\" preservePolicy=\"true\">      &lt;resource key=\"conf:resources\/rosstat\/wsdl\/RosstatOrganizationInfo.xsd\" location=\"RosstatOrganizationInfo.xsd\"\/>  &lt;\/publishWSDL>  &lt;parameter name=\"disableREST\">true&lt;\/parameter>  &lt;parameter name=\"disableSOAP12\">true&lt;\/parameter>  &lt;\/proxy><\/code><\/pre>\n<p>\u0412 \u0431\u043b\u043e\u043a\u0435 &#171;publishWSDL&#187; \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 WSDL-\u0444\u0430\u0439\u043b \u0438 XSD-\u0441\u0445\u0435\u043c\u044b (\u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435. \u042d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0434\u043b\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 WSDL\/XSD \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0440\u0435\u0441 <a href=\"https:\/\/localhost:8253\/services\/RosstatService?wsdl\"><u>https:\/\/localhost:8253\/services\/RosstatService?wsdl<\/u><\/a>.\u202f\u00a0<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e SOAP 1.1\/1.2, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c REST \u0438 \u043d\u0435\u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 SOAP.<\/p>\n<p>\u0414\u043b\u044f SOAP 1.1:<\/p>\n<pre><code class=\"xml\">&lt;parameter name=\"disableREST\">true&lt;\/parameter> &lt;parameter name=\"disableSOAP12\">true&lt;\/parameter>\u00a0<\/code><\/pre>\n<p>\u0414\u043b\u044f SOAP 1.2:<\/p>\n<pre><code class=\"xml\">&lt;parameter name=\"disableREST\">true&lt;\/parameter>  &lt;parameter name=\"disableSOAP11\">true&lt;\/parameter><\/code><\/pre>\n<h3>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441<\/h3>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 pom-\u0444\u0430\u0439\u043b \u0432 \u043c\u043e\u0434\u0443\u043b\u0435\u202fRosstatServiceCompositeExporter \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432 \u043c\u043e\u0434\u0443\u043b\u044f\u0445 RosstatServiceConfig \u0438 RosstatServiceRegistryResources:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"302\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/82e\/eb3\/585\/82eeb35858395e9fe6058661d665a174.png\" data-width=\"511\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0447\u0435\u0440\u0435\u0437 Maven \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 REST API.<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"186\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4eb\/1d1\/9c5\/4eb1d19c51e879014fb50c2a3616499e.png\" data-width=\"556\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041a\u0430\u043a \u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>\u0441\u0442\u0430\u0442\u044c\u0435<\/u><\/a>, \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Postman \u0438 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0434\u043b\u044f BackendService \u0441 Wiremock.\u00a0<\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 WSO2, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u041c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c, \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0438 \u043f\u0438\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u0435\u0449\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u043e \u043d\u0435\u0439 \u0443\u0437\u043d\u0430\u0442\u044c.<\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/648919\/\"> https:\/\/habr.com\/ru\/company\/rosbank\/blog\/648919\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>\u043f\u043e\u0441\u0442\u0435<\/u><\/a> \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 WSO2 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 REST API-\u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0442\u0435\u043c\u0443: \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c, \u043a\u0430\u043a \u043c\u044b \u0432 WSO2 \u0441\u043e\u0437\u0434\u0430\u0435\u043c SOAP-\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0434\u0435\u043b\u0430\u044e \u0430\u043a\u0446\u0435\u043d\u0442 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043e\u0431\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0441\u0442 \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/company\/rosbank\/blog\/592805\/\"><u>REST API<\/u><\/a>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 WSO2 Integration Studio \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (File \u2013 New \u2013 Integration Project). \u041d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Rosstat Service. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c RegistryResources, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 SOAP-\u0441\u0435\u0440\u0432\u0438\u0441 \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442 WSDL\/XSD, \u0430 \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0433\u0434\u0435-\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &#171;.gitkeep&#187; \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0441\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f WSO2 Nexus \u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 &#171;pom.xml&#187; \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0432\u0430\u0448\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435. \u0423 \u043d\u0430\u0441, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <a href=\"https:\/\/maven.wso2.org\/nexus\/content\/groups\/wso2-public\/\">https:\/\/maven.wso2.org\/nexus\/content\/groups\/wso2-public\/<\/a>\u202f\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 <a href=\"https:\/\/nexus.gts.rus.socgen\/repository\/maven-wso2-public\/\">https:\/\/nexus.gts.rus.socgen\/repository\/maven-wso2-public\/<\/a>.<\/p>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c <em>\u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 CallAPI<\/em>.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0442\u0438\u043f\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c Sequence Template. \u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435, \u043a\u0430\u043a \u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 REST API-\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c SOAP, \u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c REST:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"MOEX_callAPI_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setCallEndpointName\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setEndpointURL\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setEndpointURL_Suffix\"\/>   &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"setQueryParams\"\/>   &lt;sequence>       &lt;property expression=\"get-property('file', $func:setEndpointURL)\" name=\"ENV_ENDPOINT_URL\" scope=\"default\" type=\"STRING\"\/>       &lt;filter regex=\"true\" source=\"boolean($ctx:ENV_ENDPOINT_URL) and string-length($ctx:ENV_ENDPOINT_URL) > 0\">           &lt;then\/>           &lt;else>               &lt;property expression=\"get-property('env', $func:setEndpointURL)\" name=\"ENV_ENDPOINT_URL\" scope=\"default\" type=\"STRING\"\/>           &lt;\/else>     &lt;\/filter>       &lt;switch source=\"boolean($func:setQueryParams) and string-length($func:setQueryParams) > 0\">           &lt;case regex=\"true\">               &lt;property expression=\"fn:concat($ctx:ENV_ENDPOINT_URL, $func:setEndpointURL_Suffix, '?', $func:setQueryParams)\" name=\"uri.var.endpointURL_FullAddress\" scope=\"default\" type=\"STRING\"\/>           &lt;\/case>           &lt;default>             &lt;property expression=\"fn:concat($ctx:ENV_ENDPOINT_URL, $func:setEndpointURL_Suffix)\" name=\"uri.var.endpointURL_FullAddress\" scope=\"default\" type=\"STRING\"\/>           &lt;\/default>     &lt;\/switch>     &lt;class description=\"OutReqLoggerTXT\" name=\"ru.rosbank.mediator.LoggerMediatorTXT\">           &lt;property name=\"logLevel\" value=\"DEBUG\"\/>           &lt;property name=\"ReqType\" value=\"OutRequest\"\/>           &lt;property expression=\"fn:concat('sending request to endpointURL_FullAddress=', $ctx:uri.var.endpointURL_FullAddress)\" name=\"Payload\"\/>       &lt;\/class>       &lt;call>           &lt;endpoint key-expression=\"$func:setCallEndpointName\"\/>       &lt;\/call>   &lt;\/sequence>   &lt;\/template> <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c <em>\u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a SOAPFault<\/em>. \u0417\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 SOAP \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, 1.1 \u0438\u043b\u0438 1.2. \u041e\u0442 \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f ContentType. \u0412\u043e\u0442 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043b\u044f SOAP 1.1:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"Rosstat_SOAPFault_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"MessageID\"\/>  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"ErrorText\"\/>  &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"Exception\"\/>  &lt;sequence>      &lt;payloadFactory description=\"ExceptionPayload\" media-type=\"xml\">          &lt;format>              &lt;m:Exception xmlns:m=\"http:\/\/wso2.rosbank.ru\/types\/Fault\">                  &lt;msgID xmlns=\"\">$1&lt;\/msgID>                  &lt;text xmlns=\"\">$2&lt;\/text>                  &lt;exception xmlns=\"\">$3&lt;\/exception>              &lt;\/m:Exception>          &lt;\/format>          &lt;args>              &lt;arg evaluator=\"xml\" expression=\"$func:MessageID\"\/>              &lt;arg evaluator=\"xml\" expression=\"$func:ErrorText\"\/>              &lt;arg evaluator=\"xml\" expression=\"$func:Exception\"\/>          &lt;\/args>      &lt;\/payloadFactory>      &lt;enrich description=\"body to property\">          &lt;source clone=\"true\" type=\"body\"\/>          &lt;target property=\"MESSAGE_PAYLOAD\" type=\"property\"\/>      &lt;\/enrich>      &lt;makefault description=\"SoapFault\" version=\"soap11\">          &lt;code value=\"soap11Env:Server\" xmlns:soap11Env=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"\/>          &lt;reason value=\"Error message processing\"\/>          &lt;detail expression=\"get-property('MESSAGE_PAYLOAD')\"\/>      &lt;\/makefault>      &lt;propertyGroup description=\"removeHeaders\">          &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>          &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>      &lt;\/propertyGroup>      &lt;propertyGroup description=\"setHeaders\">          &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"500\"\/>          &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"Internal Server Error\"\/>          &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap11\"\/>          &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>          &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"text\/xml\"\/>          &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"text\/xml;charset=UTF-8\"\/>          &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>      &lt;\/propertyGroup>  &lt;\/sequence>  &lt;\/template><\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 XML-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c id, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0435\u0435 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043b\u043e\u0433\u0430\u0445. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e SOAP \u0434\u043b\u044f SOAPFault: <code>description=\"SoapFault\" version=\"soap11\"<\/code>.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043b\u044f SOAP 1.2:<\/p>\n<pre><code class=\"xml\">&lt;template name=\"Rosstat_SOAPFault_Template\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">      &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"MessageID\"\/>     &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"ErrorText\"\/>     &lt;parameter defaultValue=\"\" isMandatory=\"false\" name=\"Exception\"\/>     &lt;sequence>         &lt;payloadFactory description=\"ExceptionPayload\" media-type=\"xml\">             &lt;format>                 &lt;m:Exception xmlns:m=\"http:\/\/wso2.rosbank.ru\/types\/Fault\">                     &lt;msgID xmlns=\"\">$1&lt;\/msgID>                     &lt;text xmlns=\"\">$2&lt;\/text>                     &lt;exception xmlns=\"\">$3&lt;\/exception>                 &lt;\/m:Exception>             &lt;\/format>             &lt;args>                 &lt;arg evaluator=\"xml\" expression=\"$func:MessageID\"\/>                 &lt;arg evaluator=\"xml\" expression=\"$func:ErrorText\"\/>                 &lt;arg evaluator=\"xml\" expression=\"$func:Exception\"\/>             &lt;\/args>         &lt;\/payloadFactory>         &lt;enrich description=\"body to property\">             &lt;source clone=\"true\" type=\"body\"\/>             &lt;target property=\"MESSAGE_PAYLOAD\" type=\"property\"\/>         &lt;\/enrich>         &lt;makefault description=\"SoapFault\" version=\"soap12\">             &lt;code value=\"soap12Env:Receiver\" xmlns:soap12Env=\"http:\/\/www.w3.org\/2003\/05\/soap-envelope\"\/>             &lt;reason value=\"Error message processing\"\/>             &lt;detail expression=\"get-property('MESSAGE_PAYLOAD')\"\/>         &lt;\/makefault>         &lt;propertyGroup description=\"removeHeaders\">             &lt;property action=\"remove\" name=\"TRANSPORT_HEADERS\" scope=\"axis2\"\/>             &lt;property action=\"remove\" name=\"EXCESS_TRANSPORT_HEADERS\" scope=\"axis2\"\/>         &lt;\/propertyGroup>         &lt;propertyGroup description=\"setHeaders\">             &lt;property name=\"HTTP_SC\" scope=\"axis2\" type=\"STRING\" value=\"500\"\/>             &lt;property name=\"HTTP_SC_DESC\" scope=\"axis2\" type=\"STRING\" value=\"Internal Server Error\"\/>             &lt;property name=\"MESSAGE_FORMAT\" scope=\"default\" type=\"STRING\" value=\"soap12\"\/>             &lt;property name=\"messageType\" scope=\"axis2\" type=\"STRING\" value=\"application\/soap+xml\"\/>             &lt;property name=\"ContentType\" scope=\"axis2\" type=\"STRING\" value=\"application\/soap+xml\"\/>             &lt;property name=\"Content-Type\" scope=\"transport\" type=\"STRING\" value=\"application\/soap+xml;charset=UTF-8\"\/>             &lt;property name=\"RESPONSE\" scope=\"default\" type=\"STRING\" value=\"true\"\/>         &lt;\/propertyGroup>     &lt;\/sequence> &lt;\/template><\/code><\/pre>\n<h3>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0448\u0430\u0433\u0438 \u2014 Sequence \u2014\u00a0\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>FaultSequence \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d SOAPFault, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438:\u00a0<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Inbound \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<pre><code class=\"xml\">&lt;sequence name=\"Rosstat_InboundSequence\" onError=\"Rosstat_FaultSequence\" trace=\"disable\" xmlns=\"http:\/\/ws.apache.org\/ns\/synapse\">  &lt;propertyGroup description=\"setProperty\">      &lt;property name=\"ENV_SERVICE_NAME\" scope=\"default\" type=\"STRING\" value=\"RosstatService\"\/>      &lt;property expression=\"$axis2:TransportInURL\" name=\"ENV_REST_URL_POSTFIX\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"fn:substring-after(get-property('MessageID'), 'uuid:')\" name=\"ENV_MESSAGE_ID\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"local-name(\/\/soapenv:Envelope\/soapenv:Body\/*[1])\" name=\"ENV_METHOD_NAME\" scope=\"default\" type=\"STRING\" xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"\/>      &lt;property expression=\"fn:substring-after($axis2:TransportInURL, '?')\" name=\"ENV_QUERY_PARAMS\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"string('')\" name=\"ENV_EMPTY_STRING\" scope=\"default\" type=\"STRING\"\/>      &lt;property expression=\"$axis2:REMOTE_ADDR\" name=\"ENV_IP_ADDRESS\" scope=\"default\" type=\"STRING\"\/>  &lt;\/propertyGroup>  &lt;class description=\"InReqLoggerTXT\" name=\"ru.rosbank.mediator.LoggerMediatorTXT\">      &lt;property name=\"logLevel\" value=\"DEBUG\"\/>      &lt;property name=\"ReqType\" value=\"Begin\"\/>      &lt;property name=\"Payload\" value=\"Request accepted...\"\/>  &lt;\/class>  &lt;\/sequence><\/code><\/pre>\n<p>\u0412<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-328986","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/328986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=328986"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/328986\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=328986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=328986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=328986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}