Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 75 Insurance
- 537.7K On-Premises Infrastructure
- 138.7K Analytics Software
- 38.6K Application Development Software
- 6.1K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.3K Infrastructure Software
- 105.4K Integration
- 41.6K Security Software
Question on request via Assess Service

Hi All,
This is the first time I'm using the Assess web service from OPA with multiple entities. I've a problem in producing a correct request.
I'm using the following entities:
- Global
- the group
-the individual
I would like to do a request for attributes in the entity the individual.
My first question: Is it true that I need to create instances for the group and for the individual, in order to do my request? This seemed logical to me.
This is my request:
<soapenv:Body>
<typ:assess-request>
<typ:config>
<typ:show-version>true</typ:show-version>
<typ:outcome>
<typ:entity id="the_individual">
<typ:attribute id="the_individual_bond_line_is_valid_o" outcome-style="value-only"/>
</typ:entity>
</typ:outcome>
</typ:config>
<typ:global-instance>
<typ:entity id="the_group">
<typ:instance id="group 1">
<typ:entity id="the_individual">
<typ:instance id="individual 1">
<typ:attribute id="the_individual_bond_line_i">
<typ:number-val>1000000</typ:number-val>
</typ:attribute>
<typ:attribute id="the_individual_review_limit_i">
<typ:number-val>1000000</typ:number-val>
</typ:attribute>
</typ:instance>
</typ:entity>
</typ:instance>
</typ:entity>
</typ:global-instance>
</typ:assess-request>
</soapenv:Body>
I think I'm doing something wrong with the entities and the entities ID's. For the ID's I used the name I gave to my entities.
This is the response I'm getting:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i18n="http://www.w3.org/2005/09/ws-i18n" xmlns:typ="http://oracle.com/determinations/server/12.2.1/rulebase/assess/types">
<SOAP-ENV:Header>
<i18n:international>
<i18n:locale>en_US</i18n:locale>
<i18n:tz>Etc/GMT</i18n:tz>
</i18n:international>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Unexpected element in outcome configuration: entity</faultstring>
<detail>
<typ:error-response>
<typ:code>com.oracle.determinations.server.exceptions.InvalidRequestException</typ:code>
<typ:message>Unexpected element in outcome configuration: entity</typ:message>
</typ:error-response>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I'm using the 18A version from OPA at the moment and the generic 12.2.1. version from the web service.
Anyone able to help?
Thank you and kind regards,
Dennis
Best Answer
-
The structure looks OK to me, I think the problem is with your outcomes node. According to the documentation your <attribute> node inside entity in the outcomes section should be <attribute-outcome>
Answers
-
The structure looks OK to me, I think the problem is with your outcomes node. According to the documentation your <attribute> node inside entity in the outcomes section should be <attribute-outcome>
-
Wow thank you Andrew! That did the trick
Sometimes it's really silly how simple the solution can be when working on things like this. I was so focused on the structure and on my input that I completely overlooked that tiny detail on the outcome naming.
Once again I'm really happy with this community. Have a great day all.