findResourceByExampleWithOperatorRequest on RBPM 4.6 ?

Anybody have a known working example of this SOAP request? I’m attempting to get a list of all resources, which this seems like the intended SOAP request to do so. Looking at the similar Role request:


<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:ser="">www.novell.com/.../service">
<soapenv:Header/>
<soapenv:Body>
<ser:findRoleByExampleWithOperatorRequest>
<!--Optional:-->
<ser:role>
<ser:name>*</ser:name>
</ser:role>
</ser:findRoleByExampleWithOperatorRequest>
</soapenv:Body>
</soapenv:Envelope>


I can get a list of all roles, but when I try to get all resources:


<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:ser="">www.novell.com/.../service">
<soapenv:Header/>
<soapenv:Body>
<ser:findResourceByExampleWithOperatorRequest>
<ser:resource>
<ser:name>*</ser:name>
</ser:resource>
</ser:findResourceByExampleWithOperatorRequest>
</soapenv:Body>
</soapenv:Envelope>


I get a Java belch:


<SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Client</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<ns1:NrfServiceException xmlns="">www.novell.com/.../service" xmlns:ns1="">www.novell.com/.../service">
<reason>Error performing query. Could not find object definition attribute key: ProvisioningRequestDef in definition: sys-nrf-resource.</reason>
</ns1:NrfServiceException>
<stackTrace xsi:type="xsd:string">com.novell.idm.nrf.soap.ws.resource.NrfServiceException
at com.novell.idm.nrf.soap.ws.resource.NrfServiceHelper.convertToNrfServiceException(NrfServiceHelper.java:110)
at com.novell.idm.nrf.soap.ws.resource.impl.ResourceServiceSkeletonImpl.findResourceByExampleWithOperator(ResourceServiceSkeletonImpl.java:1264)
at com.novell.idm.nrf.soap.ws.resource.IRemoteResource_ServiceSkeleton._invoke(IRemoteResource_ServiceSkeleton.java:716)
at com.novell.soa.ws.server.ServletSkeleton.invokeEndPoint(ServletSkeleton.java:208)
at com.novell.soa.ws.impl.soap.MessageHandlerInvoker.invokeServerMessageHandlers(MessageHandlerInvoker.java:348)
at com.novell.soa.ws.impl.soap.SOAPHandler.handleServerRequest(SOAPHandler.java:84)
at com.novell.soa.ws.impl.rpc.ServerDelegateImpl.handleServerRequest(ServerDelegateImpl.java:92)
at com.novell.soa.ws.server.ServletSkeleton.handleRequest(ServletSkeleton.java:107)
at com.novell.soa.ws.server.ServletSkeleton.doPost(ServletSkeleton.java:317)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.novell.common.auth.JAASFilter.doFilter(JAASFilter.java:145)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.novell.common.auth.saml.AuthTokenGeneratorFilter.doFilter(AuthTokenGeneratorFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.novell.common.auth.sso.SSOFilter.doFilter(SSOFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.novell.soa.common.i18n.BestLocaleServletFilter.doFilter(BestLocaleServletFilter.java:241)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.novell.common.HttpSecurityHeadersFilter.doFilter(HttpSecurityHeadersFilter.java:132)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:193)
at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:322)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)</stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


So far, the only working search I've been able to get this to do is by specifying the entityKey (ie: resource DN) for a known object like:


<ser:entityKey>cn=Test AD Domain Users,cn=ResourceDefs,cn=RoleConfig,cn=AppConfig,cn=UserApp,cn=IDV,ou=IDM,ou=services,o=Thing</ser:entityKey>


The docs are unhelpfully devoid of information on this particular call.
Parents Reply
  • dgersic;2482279 wrote:
    Nobody, eh?


    Seems to be a mismatch between how the webservice expects the entity and how it is created in the vault (sys-nrf-resource entity).

    If you look at the entity definition under your UA driver:

    cn=sys-nrf-resource,cn=EntityDefs,cn=DirectoryModel,cn=AppConfig,cn=UserApplication,...SNIP

    there is no ProvisioningRequestDef attribute key (only RequestDef).

    Seems like a bug to me.


    You could try to edit the entity def directly in eDir to see if that fixes anything. In your lab of course :-)


    /Kristoffer
Children
No Data