question about data contract in wcf

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a complex data contract sending to wcf service side. After processing
on the service side, some of the data members will be modified by the
service. Does the sending know the change automatically(just like the one
pass by reference)? If not, how does the client know the change?
 
Roy said:
I have a complex data contract sending to wcf service side. After
processing
on the service side, some of the data members will be modified by the
service. Does the sending know the change automatically(just like the one
pass by reference)? If not, how does the client know the change?

The only way this could work is:

MyDataContrractClass mine = whatever;
mine = svc.Operation(mine);

or

svc.Operation(ref mine);

In both cases, one version is sent to the server, and the changed version is
returned to the client.
 
Back
Top