Databind llbl v2 web service

Posts   
 
    
dan
User
Posts: 17
Joined: 23-Feb-2006
# Posted on: 12-Jul-2006 14:50:31   

Hello

I'm using visual studio 2005 and llbl v2

I made a webservice that has method FindAllProduct that returns me EntityCollection<ProductEntity> How can I bind this datasource to datagrdiview

At moment I have a form that has datagrdiview, i got properties window of datagrid view and click on datasource, then I click on "Add Project Datasource"

in dialog box that comes up i chose webservice, and on next step i enter wsdl url of my web service, it finds all methods nicely when i click finish new datasource comes up, but it doesnt have my FindAllProducts method listed?

Does LLBL support this type of binding, or I'm doing something wrong?

Thank You

Posts: 1268
Joined: 10-Mar-2006
# Posted on: 12-Jul-2006 15:57:23   

Your web methods would have to have the correct signature and return types expected by the datasource for the methods to show up.

dan
User
Posts: 17
Joined: 23-Feb-2006
# Posted on: 12-Jul-2006 18:03:31   

Hello

what would be correct signatrue, and correct return type in order for my methods to work

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-Jul-2006 18:12:37   

The following is copied from the MSDN (http://msdn2.microsoft.com/en-us/library/w4dd7z6t.aspx):

The items that appear in the Data Sources window are dependent on the information that the Web service returns. Some Web services might not provide enough information for the Data Source Configuration Wizard to create bindable objects. For example, if the Web service returns an untyped dataset, then no items will appear in the Data Sources window upon completion of the wizard. This is because untyped datasets do not provide schema, so the wizard does not have enough information to create the data source.