English English Spanish EspañolKorea한국어
Straker»Company»Blog»2005» Passing a value object to a SOF CFC through webservice

Passing a value object to a SOF CFC through webservice

And this will save you a lot of time, the value of which can easily equal to a few rounds of drink that you can treat me to. When using Cairngorm framework to create a RIA that interacts with a SOF object (CFC) as a Webservice, you will find that passing a value object through the delegate class does not translate into the arguments that the SOF object function expects. In simple terms... if you have a value object called "region" and a business delegate class called "UpdateRegionDelegate", and if the function in the SOF object CFC is called "update", and you are calling UpdateRegionDelegate.update(RegionVO(region)) -- which is passing the region VO to the update method of the CFC, you will find that function in the CFC does not receive any arguments. In order to pass arguments to the function, you need to pass them through positional notation. So if the the update function accepts two arguments, OBJ_UUID,LABEL, you will have to call: UpdateRegionDelegate.update(region.OBJ_UUID,region.LABEL) -- where region is an instance of your RegionVO value object. I think this has to do with the way one can pass arguments to a webservice, rather than anything Shado specific.


Comments

There are no comments for this page as yet.

Add a comment