WebServices working!

Posts   
1  /  2  /  3  /  4
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 05-Nov-2005 12:04:53   

Answer wrote:

Hopefully monday. I created the templates to do it already and made my own task generator. Works great.. simple_smile

Looking forward! simple_smile . Thanks for putting the time into this. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 05-Nov-2005 19:05:56   

Frans, are you planning on including these in your release or do you want to make this a 3rd party addon? I know you mention earlier you were going to include it once vs went RTM and then make the docs etc on how to do it. Just curious if thats the still the case?

Either way, i can email you what i have for my templates if you wish.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 05-Nov-2005 20:24:37   

I've to check what's necessary to get it working. If it's a lot of hassle, I might decide to go for an add-on. If it's a thing which can be enabled easily, it's a no-brainer to add it to the main release. What I want to avoid at the moment is to change a lot in the released code, but what I tried out earlier using your info, it's a couple of templates and it works simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 02-Dec-2005 06:51:17   

There's a problem.

Hierarchical entities returned from a webmethod, with polymorphism.

Say I have the webmethod: [WebMethod()] public CustomerEntity GetCustomer(string customerID) { ... }

now, what if I return a FemaleCustomerEntity (subtype of CustomerEntity) ? -> the client creates a CustomerEntity, because that's what the method's return type is, which means that there are just the customer fields, while the xml contains the FemaleCustomerEntity fields.

I don't have a clue how to solve this though, apparently, MS didn't think through this well enough, as is often the case when it comes to something related to Xml

I think i found a way to solve this. This is untested cuase my project doesnt use inheritance at the moment, but i believe this cna be solved by 2 methods.

Either include the

 [XmlInclude(typeof(FemaleCustomerEntity))] 

attribute above the webmethod OR above the base class simple_smile

This works on types that the XmlSerializer serializes, but i think it should work on IXmlSerializable as well.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 02-Dec-2005 10:09:34   

Thanks for the update! simple_smile I'll check it out.

Frans Bouma | Lead developer LLBLGen Pro
swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 02-Dec-2005 15:41:21   

I'm just starting a Webservice application now. Was this released as a feature, or available as a template? Is there a way someone can email me this if it's a template?

Thanks!

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 05-Dec-2005 17:57:21   

I can email you the templates i created and am using but i need your email simple_smile

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 05-Dec-2005 20:38:24   

Answer wrote:

I can email you the templates i created and am using but i need your email simple_smile

It's sparky at developerfood dot com

Thanks!

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 06-Dec-2005 16:30:51   

Emailed!

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 06-Dec-2005 16:56:43   

Answer wrote:

Emailed!

Got it, thanks! I appreciate your work.

simple_smile

davisg avatar
davisg
User
Posts: 113
Joined: 27-Feb-2005
# Posted on: 07-Dec-2005 10:53:59   

Answer wrote:

I can email you the templates i created and am using but i need your email simple_smile

Hi Answer, I would like to use your code too, can you email it to ezydev dash software at yahoo dot co dot uk

Many thanks and looking forward to seeing it.

Geoff.

sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 07-Dec-2005 15:09:01   

If you don't mind, send those to me too smile address: shavonen at hotmail dot com

arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 07-Dec-2005 17:29:58   

Is this going to be incorporated into the standard package, if not could it be added to the 3rd party downloads?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 07-Dec-2005 18:22:40   

arschr wrote:

Is this going to be incorporated into the standard package, if not could it be added to the 3rd party downloads?

in v2.0 it's included. Till then it could be a 3rd party add on, but I don't have the archive yet.

Frans Bouma | Lead developer LLBLGen Pro
swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 07-Dec-2005 19:36:10   

Otis wrote:

arschr wrote:

Is this going to be incorporated into the standard package, if not could it be added to the 3rd party downloads?

in v2.0 it's included.

Sweeet!

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 08-Dec-2005 03:37:53   

I'll get them emailed you to you guys asap in the morning since there on my work computer...i would have added them to the 3rd party section earlier, however i didnt know where to email them and since no one needed them i didnt bother trying to find out simple_smile

I know where to send them now, so ill send them to you frans for addition to 3rd party...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 09-Dec-2005 08:57:00   

I've received the archive. I'll see if I can put it up today! simple_smile

Frans Bouma | Lead developer LLBLGen Pro
davisg avatar
davisg
User
Posts: 113
Joined: 27-Feb-2005
# Posted on: 09-Dec-2005 16:52:27   

Answer wrote:

I'll get them emailed you to you guys asap in the morning since there on my work computer...i would have added them to the 3rd party section earlier, however i didnt know where to email them and since no one needed them i didnt bother trying to find out simple_smile

I know where to send them now, so ill send them to you frans for addition to 3rd party...

Thanks, got them the other day so I will be checking them out this weekend. Appreciated.

Geoff.

sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 10-Dec-2005 11:01:36   

Answer wrote:

I'll get them emailed you to you guys asap in the morning since there on my work computer...i would have added them to the 3rd party section earlier, however i didnt know where to email them and since no one needed them i didnt bother trying to find out simple_smile

I know where to send them now, so ill send them to you frans for addition to 3rd party...

Great! Thanks mate!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39615
Joined: 17-Aug-2003
# Posted on: 10-Dec-2005 13:37:44   

They're online available now: in the customer area -> third party section. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Indlex
User
Posts: 4
Joined: 11-Dec-2005
# Posted on: 11-Dec-2005 17:00:37   

I have generated the BL successfully by using the Web Service generator. I am not quite sure how to use the wsdl.exe tool to generate the proxy. Can anyone please describe (or point me to some external resources) what I have to do next?

Thanks

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 11-Dec-2005 22:21:56   

first page of this thread, 6th post down. smile

dvdstelt
User
Posts: 22
Joined: 06-Dec-2005
# Posted on: 05-Jan-2006 10:35:40   

How do I use these templates? I've searched through the manual, but cannot seem to find how I should run these from LLBLGen Pro.

Where do I copy them to? How do I run them? Can I integrate these with my regular DAL generation templates, supplied with LLBLGen?

I've just copied the files to the LLBLGen Pro root (including folders) but I immediatly get an xml error when opening the "Generate..." dialog.

dvdstelt
User
Posts: 22
Joined: 06-Dec-2005
# Posted on: 05-Jan-2006 14:07:39   

dvdstelt wrote:

How do I use these templates? I've searched through the manual, but cannot seem to find how I should run these from LLBLGen Pro.

I've downloaded the Template Designer, and I probably should use it. Add the given templates into the normal template project or something.

Any suggestions here?

Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 06-Jan-2006 05:04:45   

Extract zip file to your llblgen folder. You can then select the task performer from the generation menu...

1  /  2  /  3  /  4