Binding webservice input list

I have a portlet that visualize via webservice, called “getRequests”, the list of requests into a table. This table has the possibility to select some rows.
I would like that the selected rows are the input of another webservice called “updateRequests”.
The output structure of “getRequest” and the input structure of “updateRequest” are the same. Both have a list of element “Richiesta”.
How can I bind the selected rows with the input of webservice “updateRequests”?



Assuming you are using the SelectableistTableContentProvider as the content provider for your table, there is a java API (this also be used in a binding expression) that would give you a list of the row objects for the selected rows.


Though, depending on how you generated the two web services, you may have two copies of the class representing your “Richiesta” element generated in two different java packages. So the output of one service may not be directly mappable to the input of the second service. If that is the case you would need to write some java code to transfer he data from the objects used as output of the first webservice to new object that will work for the second webservice.

Though, if you are using a recent release of Integration Server to host your web services, then you could put both of the services under a Web Service Descriptor (WSD) node. You create them in the Developer and organize multiple flow services under a single node. Then if you create a WS client to call services from WSD node it is going to create a single proxy class for each document type used by different services. Then mapping from output of one service as an input to another will be as simple as assignment of a whole document.

Hi Eric,
thanks to reply.

I recreated the WSD with the two services (GetRequests and UpdateRequests) and imported it into portlet.
I binded the input of UpdateRequests with the SelectedRows of ContentProvider “Richieste” (the array source is the output of GetRequests webservice)(see imageRequest.png) but when i call the UpdateRequest i have these errors (see Errors.png).


I think you may be binding at one level too deep.

In the “Bindings” view the items under the List/Array node are transient items that represent the data available in each item in the List/Array. It’s a visual representation of what is the table control will have available while it is iterating through the list while rendering each row. I agree that it is a little confusing, and maybe we can do that better in the future.

For example, the “Input Parameters > Update Requests > Richieste” should be bound directly to “Richieste > Selected Rows”.

Note, if your input parameters expect an array of Richieste objects instead of a List of them, you may have to create a custom java getter method in your page bean java class to convert the list to an array. Then you can bind to your custom getter method for the input parameter instead.

For example:

public Richieste[] getSelectedRowsAsArray() {
    List selectedRows = [get_table_content_provder_here].getSelectedRows();
    return (Richieste[])selectedRows.toArray(new Richieste[selectedRows.size()]);

Hi Eric,
I bound the data structure as you suggested me and I have no errors in the portlet when I invoke the “UpdateRequest” webservice but the flow service on Integration Server doesn’t work as I want.

I tryed my flow service in Service Developement Perspective and it works fine. I put the debugLog activity in different point of flow service to understand step to step where is the problem. (see the Flowservice.png).
When I select 2 rows of table and I call the webservice from portlet, I find only “approvazione” in Server.log

I think that the data not arrives correctly from portlet to flow service.


Hi Eric,
I solved. I made a mistake setting the scope of “GetRequests” web service and the content provider “Richieste”. I’d setted the scope as “request” instead of “session”.
Now it works.
Thanks a lot for your support.

I have a similar type of scenario.

Have webservice with input as list,now I am trying to map value to ws input list value.But getting null pointer error.

For ws input mapping I am using the below code


Attached the below screen for ws Input set.

wsInput Structure.PNG

How to bind customer getter method as input… Please advise. I need it for my CAF page.