Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[solved] can't assign xsi:nil=true

592308Aug 30 2007 — edited Jul 30 2008
I'm interfaceing with a web service which has defined its schema as using nillable elements. As such, I'd like to be able to set the xsi:nil="true" attribute during an Assignment Activity before invoking.

I have tried these two options:

(1)
-------------------
<assign>
<copy>
<from> </ns1:Zaak/ns1:Einddatum xsi:nil="true" /> </from>
<to variable="MaakZaak_zaakcreatie_InputVariable" part="payload"
query="/ns1:Zaak/ns1:Einddatum" />
</copy>
</assign>
-------------------

(2)
-------------------
<assign>
<copy>
<from expression="'true'"/>
<to variable="MaakZaak_zaakcreatie_InputVariable" part="payload"
query="/ns1:Zaak/ns1:Einddatum/@xsi:nil"/>
</copy>
</assign>
-------------------

When I deploy the first option and go on and test it, it can't find my instance?!

When I try the second option it shows me the following error in the bpel console flow:
<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>XPath query string returns zero node.
According to BPEL4WS spec 1.1 section 14.3, The assign activity <to> part query should not return zero node.
Please check the BPEL source at line number "159" and verify the <to> part xpath query.
</summary>
</part></selectionFailure>

Please helpme out!

Message was edited by:
Roelofk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2007
Added on Aug 30 2007
8 comments
2,929 views