webServices...client machine does not have llblGenPro

Posts   
 
    
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 09-Mar-2006 17:01:29   

hiya,

I have to provide a webService for a webSite that has 1.1 .net framework and doesn't have llblGenPro installed.

My webService machine will have VS2005 and latest llblGenPro installed.

Will this work?

If not, I assume I'll have to use the standard VS2005 webService stuff?

Any comment from anyone who's implemented a webService with llblGenPro much appreciated....

Does llblGenPro have a hosted webService / sample that I could study?

Many thanks,

yogi

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 10-Mar-2006 08:08:34   

Will this work?

Yes this will work, and you have 2 options:

1- If you will be passing LLBLGen generated objects In/out of the Service (parameters), then you will need to have the ORMSupportClasses dll in your webSite machine.

2- If you will be passing simple dataTypes or your custom objects, you won't need that dll. but you will need extra coding in the webService to convert from LLBLGen generated objects to your custom objects / simple dataTypes and vice versa.

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 10-Mar-2006 11:21:22   

cheers Walaa,

Most of the stuff that will be output by the webService will be readOnly. Would you recommend using typedLists?

yogi

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 10-Mar-2006 15:25:29   

Yes sure, TypedLists, TypedViews and DynamicLists (dynaimc TypedLists) all return DataTables, and those would be fine to use.

Just remember in the WebService you will have to wrap those DataTables inside DataSets, coz DataTables aren't serializable, but DataSets are. (It's a simple one or two lines of code)

Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 11-Mar-2006 02:13:10   

Hi,

The Datatable is serializable in the Net Framework 2.

Something that I did not know about Net Framework 1.X and the Dataset is that the Dataset is always serialized as xml in a remoting scenario no matter if you use the binary formatter. Now version 2 add the RemotingFormat to allow the Dataset and Datatable to be serialized as binary in a remoting scenario.

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 11-Mar-2006 12:55:09   

hiya, thanks for all the replies folks.

This is an on and off-project that I am doing in my "spare" time. I think a bit more reading up is req'd on my part :-)

cheers,

yogi