value type v.s. reference type in Web Services
My question is what is the differences in underlying processing (especially how/whether a copy is made in proxy object at web services client side) when we pass a complex data type (e.g. user defined class or user defined struct) as input parameter to a Web Services?
I think for both value type (struct) and reference type (class), proxy class will,
- make a shadow copy of public fields of the input parameter of the complex data type from user defined method (caller) (which calls proxy class method) to the proxy class method (callee)?
- And proxy will make another "copy" to serialize the object into SOAP message.
Two copies? So no differences?
What is the differences between passing type and ref type? I think it also does not save underlying proxy object from copying?
thanks in advance,