Oracle 服务云 SOAP API RunAnalyticsReport 过滤器问题

Oracle Service Cloud SOAP API RunAnalyticsReport Filter Issue

这是关于 Oracle 服务云 SOAP 的。

我的障碍: 我希望能够使用关键字 (answers.search_fnl) 进行过滤。

下面我有一个 SOAP 标记,它使用报告 ID 访问报告。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <ns7:ClientInfoHeader soapenv:mustUnderstand="0" xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:AppID>getFAQbyKeyword</ns7:AppID>
      </ns7:ClientInfoHeader>
      <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>username</wsse:Username>
            <wsse:Password>password</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <ns7:RunAnalyticsReport xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:AnalyticsReport xsi:type="ns7:AnalyticsReport" xmlns:ns7="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ID id="#" xmlns="urn:base.ws.rightnow.com/v1_2"/>
         </ns7:AnalyticsReport>
      </ns7:RunAnalyticsReport>
   </soapenv:Body>
</soapenv:Envelope>

我现在想将这部分包含在其中:

        <ns7:Filters xsi:type="ns7:AnalyticsReportFilter">
           <ns7:Name>answers.search_fnl</ns7:Name>
           <ns7:Values>test</ns7:Values>
        </ns7:Filters>

我的尝试是:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <ns7:ClientInfoHeader soapenv:mustUnderstand="0" xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:AppID>getFAQbyKeyword</ns7:AppID>
      </ns7:ClientInfoHeader>
      <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>username</wsse:Username>
            <wsse:Password>password</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <ns7:RunAnalyticsReport xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:AnalyticsReport xsi:type="ns7:AnalyticsReport" xmlns:ns7="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ID id="#" xmlns="urn:base.ws.rightnow.com/v1_2"/>
            <ns7:Filters xsi:type="ns7:AnalyticsReportFilter">
               <ns7:Name>answers.search_fnl</ns7:Name>
               <ns7:Values>test</ns7:Values>
            </ns7:Filters>
         </ns7:AnalyticsReport>
      </ns7:RunAnalyticsReport>
   </soapenv:Body>
</soapenv:Envelope>

我的错误是:

RightNowSyncService|urn:wsdl.ws.rightnow.com/v1_2 failed

Found out-of-order or unrecognized node

Filters|urn:messages.ws.rightnow.com/v1_2 while parsing node of type AnalyticsReport|urn:objects.ws.rightnow.com/v1_2

Failure in setting value for object RunAnalyticsReportMsg element AnalyticsReport of type objects_ws_rightnow_com_v1_2::AnalyticsReport

Failure in setting value for object RunAnalyticsReport element RunAnalyticsReport of type messages_ws_rightnow_com_v1_2::RunAnalyticsReportMsg

由于缺失或无效从 RunAnalyticsReport 反序列化程序返回 NULL XML

解决方案可以是包含必要编辑的 SOAP 结构吗?

提前致谢!

答案:

<ID id="#" xmlns="urn:base.ws.rightnow.com/v1_2"/> <Filters xmlns="urn:objects.ws.rightnow.com/v1_2"> <Name>answers.search_fnl</Name> <Values>string</Values> </Filters>