question about data contract in wcf

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?
 
J

John Saunders [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top