WCF RIA SP1 and Complex Types support


hi, all!

i have strange trouble. say, have server operation:

[ invoke ]

ienumerable<somecomplextype> myinvokeoperation( anothercomplextype p1, yetanothercomplextype[] p2 );

when server's operation has been invoked client call:

var result = myinvokeoperation( new anothercomplextype { ... }, new[] { new yetanothercomplextype { ... } } );

server's parameters looks strange:

p1 assigned ok, p2 has empty array. problem is? tried wrap array class didn't give effect me.

hi, all!

have strange trouble. say, have server operation:

[ invoke ]

ienumerable<somecomplextype> myinvokeoperation( anothercomplextype p1, yetanothercomplextype[] p2 );

when server's operation has been invoked client call:

var result = myinvokeoperation( new anothercomplextype { ... }, new[] { new yetanothercomplextype { ... } } );

server's parameters looks strange:

p1 assigned ok, p2 has empty array. problem is? tried wrap array class didn't give effect me.

i found problem.

my project has next ns structure:

xxx.web.models - namespace models

xxx.web.services - namespace ria services

i made mistake , placed complextypes *.web.services ns instead of *.web.models. may bug of ria services, single parameter deserialized ok, array or ienumerable<> wasn't

found problem.

project has next ns structure:

xxx.web.models - namespace models

xxx.web.services - namespace ria services

made mistake , placed complextypes *.web.services ns instead of *.web.models. may bug of ria services, single parameter deserialized ok, array or ienumerable<> wasn't



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........