首页 \ 问答 \ Cisco Webex API例外(Cisco Webex API Exception)

Cisco Webex API例外(Cisco Webex API Exception)

我已经成功使用了其他几个Webex API,但“LstrecordaccessDetailHistory XML Request”不起作用。

我从XML响应中得到了这条消息:

无法实例化com.webex.xmlapi.service.binding.history.lstrecordaccessDetailHistory; java.lang.ClassNotFoundException:com.webex.xmlapi.service.binding.history.lstrecordaccessDetailHistory

这是我的XML请求体:

String strXML = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n";
        strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:serv=\"http://www.webex.com/schemas/2002/06/service\">\r\n";
        strXML += "<header>";
        strXML += "<securityContext>";
        strXML += "<password>password</password>";
        strXML += "<siteName>siteName</siteName>";
        strXML += "<email>email</email>";
        strXML += "</securityContext>";
        strXML += "</header>";


        strXML += "<body>";
        strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.history.lstrecordaccessDetailHistory\">";
        strXML += "<recondID>recondID</recondID>";
        strXML += "<timeZoneID>timeZoneID</timeZoneID>";
        strXML += "<listControl>";
        strXML += "<startFrom>1</startFrom>";
        strXML += "<maximumNum>500</maximumNum>";
        strXML += "<listMethod>OR</listMethod>";
        strXML += "</listControl>";
        strXML += "</bodyContent>";
        strXML += "</body>";
        strXML += "</serv:message>";

这是思科的文档

以前有没有人经历过这个?


I have successfully consumed several other Webex APIs but the "LstrecordaccessDetailHistory XML Request" doesn't work.

I got this message from the XML response:

unable to instantiate com.webex.xmlapi.service.binding.history.lstrecordaccessDetailHistory; java.lang.ClassNotFoundException: com.webex.xmlapi.service.binding.history.lstrecordaccessDetailHistory

Here's my XML request body:

String strXML = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n";
        strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:serv=\"http://www.webex.com/schemas/2002/06/service\">\r\n";
        strXML += "<header>";
        strXML += "<securityContext>";
        strXML += "<password>password</password>";
        strXML += "<siteName>siteName</siteName>";
        strXML += "<email>email</email>";
        strXML += "</securityContext>";
        strXML += "</header>";


        strXML += "<body>";
        strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.history.lstrecordaccessDetailHistory\">";
        strXML += "<recondID>recondID</recondID>";
        strXML += "<timeZoneID>timeZoneID</timeZoneID>";
        strXML += "<listControl>";
        strXML += "<startFrom>1</startFrom>";
        strXML += "<maximumNum>500</maximumNum>";
        strXML += "<listMethod>OR</listMethod>";
        strXML += "</listControl>";
        strXML += "</bodyContent>";
        strXML += "</body>";
        strXML += "</serv:message>";

Here's the documentation from Cisco.

Has anyone gone through this before?


原文:https://stackoverflow.com/questions/31620858
更新时间:2022-04-08 07:04

最满意答案

怎么样:

 <%= scope.function_template("subtemplate.erb") %>

how about:

 <%= scope.function_template("subtemplate.erb") %>

相关问答

更多
  • 是的,父模板将被重新渲染,因为它必须重新绘制。 虽然只有{{#isolate}}位内的部分会发生变化(包含模板a),但模板hello会发生变化,这就是调用重新渲染的原因。 每次通过Spark渲染引擎(为流星模板系统提供动力的当前版本)更改模板的html时,都会调用.rendered() 。 在新的渲染引擎中,Shark, .rendered()只会在初始加载时调用一次。 这可能更符合您的要求,但仍处于预览版本中 Yes the parent template would be re-rendered bec ...
  • 我不认为在Puppet中以编程方式处理异常处理。 如果您声明一个资源,那么预计puppet会将您的计算机带到该状态(已安装的软件包),如果没有,它将自动失败。 您可以做的一件事(我不建议)并且不是“木偶方式”如下: 创建自定义facter(不是自定义函数,因为它在puppet master上执行,你希望这个ruby代码在puppet代理上执行) 由于它是facter中的普通ruby代码,因此您可以进行异常处理和所有程序化操作。 您可以从puppet代码中将package作为unix命令安装,并且有一些逻辑, ...
  • 如果您愿意放弃需要{% include %}语句的要求,如果您在视图中尝试这样的事情,您可以手动执行操作... def view(request, id): theme = get_object_or_404(Theme, pk=id) original_context = RequestContext(request) page_context = Context({ 'db_head': Template(theme.head_template).render( ...
  • 在这种情况下你应该转向augeas 。 它将允许puppet仅更改它知道或想要控制的配置键而不是整个文件。 因此,您将使用file资源来确保文件存在,但不关心内容。 然后使用augeas来管理您希望控制的内容部分。 In situations like this you should turn to augeas. It will allow puppet to only change config keys it knows about or wants to control instead of the ...
  • 问题可能是provider => init行,它覆盖了处理服务的默认提供程序。 init提供程序是一个非常简单的提供程序,它不支持“可启用”功能,因此它无法将服务设置为在引导时启动。 有关其功能,请参见http://docs.puppetlabs.com/references/2.7.6/type.html#service 。 在您的puppet apply示例中,您没有指定提供程序,因此它选择最适合您的系统 - 在您的情况下使用chkconfig的“redhat”提供程序。 要解决此问题,请从servic ...
  • 怎么样: <%= scope.function_template("subtemplate.erb") %> how about: <%= scope.function_template("subtemplate.erb") %>
  • 您的模板无法直接访问类elasticsearch::es_deploy的变量,因为它未在该类的范围内调用。 相反,它是在定义类型elasticsearch::es_deploy::deploy_instances的范围内elasticsearch::es_deploy ,尽管与elasticsearch::es_deploy ,命名和词法嵌套的范围无关。 Puppet语言参考包含有关范围规则的部分 ,这解释了这一点。 从Puppet 3.0开始,所有变量引用都是(应该是)根据静态作用域规则进行查找,尽管在这 ...
  • 每次服务器执行Puppet运行时,Puppet都会重新评估模板,因为Puppet代理将请求新的目录。 如果ENC更改其数据以提供新的主机列表,则模板输出将更改,客户端将获得新目录并应用该文件的新内容。 Puppet代理通常作为守护进程运行,每20分钟执行一次运行。 运行时,文件将更新。 Puppet will re-evaluate the template every time a server performs a Puppet run, as the Puppet agent will request ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)