Web Services and RelationPredicateBucket Troubles

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 04-Jan-2008 22:49:24   

Has anyone ran into any issues passing RelationPredicateBuckets to web service methods? My PredicateExpression seems to be coming in empty after i pass it populated.

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Jan-2008 04:20:11   
David Elizondo | LLBLGen Support Team
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 07-Jan-2008 14:58:50   

daelmo wrote:

Could you please give us more info? http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7722

Version 2.0.0.0 Final Adapter .NET 2.0

That's about it, nothing special.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 07-Jan-2008 15:01:53   

filters and the like aren't XML serializable by default, so that might be the case. How do you send them across the wire? Using your own xml serialization?

Frans Bouma | Lead developer LLBLGen Pro
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 07-Jan-2008 15:15:19   

Otis wrote:

filters and the like aren't XML serializable by default, so that might be the case. How do you send them across the wire? Using your own xml serialization?

No, I just pass them as is, however, i do modify the wsdl gen code to use the llbl objects instead of the generated proxies. hmm...can u think of any way around this?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 08-Jan-2008 10:51:17   

I think you should pass messages to a web method, rather than objects. Or if it's a complex filter, you may try to implement the XML Serialization.

A similar question: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6617

MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Jan-2008 14:39:36   

Walaa wrote:

I think you should pass messages to a web method, rather than objects. Or if it's a complex filter, you may try to implement the XML Serialization.

A similar question: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6617

Ok, I can deal with that. Any ideas on how to create a generic message object that can be mapped back to a relationalprediatebucket? All I need is the basic compare value expressions, no relations.

MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Jan-2008 16:27:31   

Ok, I am almost done but I am running into one problem. I am trying to map a FieldCompareSetPredicate to my message object and I can't find in the graph where the PredicateExpression is that I set. Here is my code snippet:

            
                bucket.PredicateExpression.AddWithAnd(new FieldCompareSetPredicate(
                EntityFieldFactory.Create(TaskFieldIndex.TaskID), null,
                EntityFieldFactory.Create(Label_TaskFieldIndex.TaskID),
                null,
                SetOperator.In,
                new PredicateExpression(Label_TaskFields.LabelID == 5))
                );

** Nevermind, Got it. **

I need to pull out the '5' value.

Thanks