【问题标题】:WSO2 API Manager: Fault message schema (xsd)WSO2 API 管理器:故障消息架构 (xsd)
【发布时间】:2014-05-15 12:57:10
【问题描述】:

当 WSO2 API 管理器上的服务失败时,错误消息的架构定义是什么。例如,服务处于阻塞状态,调用此服务时,WSO2 会使用正确的 SOAP-Fault 消息进行回复。 am:fault 元素的架构 (xsd) 定义是什么?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://foobar.nl/foobar">
   <soapenv:Header/>
   <soapenv:Body>
      <am:fault xmlns:am="http://wso2.org/apimanager">
         <am:code>700700</am:code>
         <am:message>API blocked</am:message>
         <am:description>This API has been blocked temporarily. Please try again later or contact the system administrators.</am:description>
      </am:fault>
   </soapenv:Body>
</soapenv:Envelope>

【问题讨论】:

    标签: soap xsd wso2 wso2-am fault


    【解决方案1】:

    向 WSO2 创建文档请求以更新文档; https://wso2.org/jira/browse/DOCUMENTATION-866

    【讨论】:

      【解决方案2】:

      默认架构是,

        <am:fault xmlns:am="http://wso2.org/apimanager">
           <am:code>ERROR_CODE</am:code>
           <am:message>ERROR_MESSAGE</am:message>
           <am:description>ERROR_DESCRIPTION</am:description>
        </am:fault>
      

      您可以通过序列自定义故障格式。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-08
        相关资源
        最近更新 更多