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
最满意答案
怎么样:
<%= scope.function_template("subtemplate.erb") %>
how about:
<%= scope.function_template("subtemplate.erb") %>
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
Meteor:更改子模板而不重新渲染父模板(Meteor: Changing a subtemplate without re-rendering parent template)[2023-08-01]
是的,父模板将被重新渲染,因为它必须重新绘制。 虽然只有{{#isolate}}位内的部分会发生变化(包含模板a),但模板hello会发生变化,这就是调用重新渲染的原因。 每次通过Spark渲染引擎(为流星模板系统提供动力的当前版本)更改模板的html时,都会调用.rendered() 。 在新的渲染引擎中,Shark, .rendered()只会在初始加载时调用一次。 这可能更符合您的要求,但仍处于预览版本中 Yes the parent template would be re-rendered bec ... -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
Puppet异常处理?(Puppet exception handling?)[2023-04-27]
我不认为在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 ...