This discussion is archived
6 Replies Latest reply: Jan 23, 2013 7:59 AM by Jasmine Lee RSS

Help with Entity in web service...

Paul Fowler Explorer
Currently Being Moderated
Please assist.

I am unable to pass child entity data into OPA determinations server...

I am on OPA 10.4.2 testing with SoapUI Pro 4.5.1.

Here is the simplistic soap request with "pk_id" as a sample attribute. Note that OPA always comes back saying "<typ:unknown-val/>" even though I am explicitely supplying the value for "pk_id"

I have spent hours rereading the manuals, etc... I am using the specific WSDL. There are no errors on the Embedded Web Server Output. There is nothing to indicate why this is not working.

It does seem to accept data attributes on the global entity. So, it appears to be a problem on child entities. I have checked that all relationships and entities have public names. I have enabled the "Check Data Model" and "Check Determinations Server Compatibility" checkboxes prior to the build with no errors. I am at a loss.


REQUEST:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://oracle.com/determinations/server/10.4/SSP/assess/types">
<soapenv:Header/>
<soapenv:Body>
          <typ:assess-request>
               <typ:global-instance>
                    <typ:a10 outcome-style="value-only">
                         <typ:date-val>2013-01-22-05:00</typ:date-val>
                    </typ:a10>
                    <typ:list-eSDX>
                         <typ:eSDX id="1.0">
                              <typ:pk_id outcome-style="value-only">
                                   <typ:number-val>1.0</typ:number-val>
                              </typ:pk_id>
                         </typ:eSDX>
                    </typ:list-eSDX>
               </typ:global-instance>
</typ:assess-request>
</soapenv:Body>
</soapenv:Envelope>

RESPONSE:
<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/10.4/SSP/assess/types">
<SOAP-ENV:Header>
<i18n:international>
<i18n:locale>en_US</i18n:locale>
<i18n:tz>GMT-0500</i18n:tz>
</i18n:international>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<typ:assess-response>
<typ:global-instance>
<typ:a10 type="date" inferred="true">
<typ:date-val>2013-01-22</typ:date-val>
</typ:a10>
<typ:list-eSDX inferred="false">
<typ:eSDX id="1.0">
<typ:pk_id type="number" inferred="false">
<typ:unknown-val/>
</typ:pk_id>
</typ:eSDX>
</typ:list-eSDX>
</typ:global-instance>
</typ:assess-response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
  • 1. Re: Help with Entity in web service...
    Ben Rogers Journeyer
    Currently Being Moderated
    Hi Paul
    I think it is because of the "outcome-style". In fact, blank outcome styles throw an error in my version (10.4.1), but if I send something like:

    <typ:pk_id outcome-style="value-only">
    <typ:number-val>1.0</typ:number-val>
    </typ:pk_id>
    I get the behaviour you mention.

    Try removing outcome-style altogether and it should work.

    Cheers,
    Ben

    ***edit... forum seems to remove = " value only "... bottom line: remove the outcome style from the base attribute(s) :-)

    Edited by: Ben Rogers on Jan 22, 2013 9:16 PM
  • 2. Re: Help with Entity in web service...
    Paul Fowler Explorer
    Currently Being Moderated
    For half a second, I thought you had it. I figured it was a bug in SoapUI Pro. I always put an outcome style...

    Unfortunately, no. It is just the example above. Here is an example with the outcome style set and it still says "unknown" for the value...

    I have tried every combination of outcome style, etc. I think it is time to open a support call with Oracle.


    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://oracle.com/determinations/server/10.4/SSP/assess/types">
    <soapenv:Header/>
    <soapenv:Body><typ:assess-request><typ:global-instance><!--You may enter the following 6 items in any order-->
    <typ:a10 outcome-style="value-only">
                   <typ:date-val>2013-01-22-05:00</typ:date-val>
              </typ:a10><typ:list-eSDX><typ:eSDX id="1.0">
              <typ:pk_id outcome-style="base-attributes">
                   <typ:number-val>1</typ:number-val>
                   </typ:pk_id></typ:eSDX>
                   </typ:list-eSDX>
              </typ:global-instance>
    </typ:assess-request>
    </soapenv:Body>
    </soapenv:Envelope>
  • 3. Re: Help with Entity in web service...
    Ben Rogers Journeyer
    Currently Being Moderated
    Hmm, did you try and remove the "outcome-style" tag completely?
    I think the problem is that you are trying to assign an outcome-style to a base attribute.

    So instead of sending in

    <typ:pk_id outcome-style="">
    <typ:number-val>1</typ:number-val>
    </typ:pk_id>

    just send in

    <typ:pk_id>
    <typ:number-val>1</typ:number-val>
    </typ:pk_id>

    ?
    Cheers,
    Ben
  • 4. Re: Help with Entity in web service...
    Paul Fowler Explorer
    Currently Being Moderated
    Yup. I tried that. BTW, I think it is this forum posting that is removing the values between the double-quotes...

    It is not showing the xml message exactly as I am typing it into the posting. That is a pain!
  • 5. Re: Help with Entity in web service...
    Paul Fowler Explorer
    Currently Being Moderated
    Today, it is working.

    We don't know why. Same xml message, but now it is working??????????

    Thank you everyone who looked at this.
  • 6. Re: Help with Entity in web service...
    Jasmine Lee Expert
    Currently Being Moderated
    Hi Paul,

    When putting code in forum posts, put { code } immediately above and below the code (but remove the spaces between the curly braces and "code"). This will prevent the forum from stripping out anything. See example below:
    <tag>code snippet</tag>
    Cheers,
    Jasmine

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points