SilverLight to Wcf calling parameter size
i have silverlight application communicates wcf service. when parameter size exceeds 8000 bytes, starts causing errors. example:
servicereference1.
service1client sclient = new mysltest.servicereference1.service1client();string s = "..... large string ";
sclient.doworkasync(s);
i have googled lot have not come accros solution works. can point me simple sample works larger buffer 8000 bytes ? works fine sizes smaller 8000 bytes. several posts in these forums suggest changing elements in web.config wcf/web services pretty sure has nothing limitation.
my servicereferences.clientconfig looks follows (this default vs2008 sp1 generates when adding wcf web service reference):
<configuration><
system.servicemodel> <bindings><
basichttpbinding><
binding name="basichttpbinding_service1" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647"><
security mode="none" /> </binding></
basichttpbinding> </bindings><
client><
endpoint address=http://hoonxp/mysltest.web/service1.svc binding="basichttpbinding" bindingconfiguration="basichttpbinding_service1" contract="servicereference1.service1" name="basichttpbinding_service1" /></
client> </system.servicemodel></
configuration>
hi,
this thread can you: http://silverlight.net/forums/p/17674/59744.aspx#59744
you have increase message/buffer sizes both in client (servicereferences.clientconfig) , server (web.config).
Silverlight > Accessing Web Services with Silverlight
Comments
Post a Comment