cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to fill table from webservice

Former Member
0 Kudos

Hi everyone,

I've having a little problem when I try to show a webservice response into a table.

My webservice structure is:

Context

--> Request_PurchaseOrderByIDQueryResponse_In (0..n)

--> Response (0..1)

--> PurchaseOrderByIDResponse_Sync (0..1)

--> PurchaseOrder (0..1)

--> Item (1..n)

--> Description (1..1)

--> SimpleContent

I want to fill a table with all descriptions of the items.

Response example:

Item

Description

Desc1

Item

Description

Desc2

Item

Description

Desc3

Expected result:

Description (Tittle)

Desc1

Desc2

Desc3

Could anyone help me please?

Thanks in advance,

Jose

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

you have to execute your webService the best way is to import the webService as model. After that you can create a model node in context and add the webService model to it.

On the modelNode you have a method which returns you the modelObject on this model object there is an execute() method. This method you will have to call to execute the webService.

To show up the webService results just bind the modelNode to your table as datasource. After that you can create a binding. Just switch on the view to the layout tab and now go to the outline on the right side of your window, right click on the table you have bound the modelNode to and choose create Binding.

Now you can select every attribute out of the modelNode you wish to display inside your table!

kind regards

Fabian