H,
I've never worked or written a C# wcf webservice before.
The w开发者_StackOverflow中文版ebservice method I am using has the signature as below, also written by third party who hasn't worked with wcf before:
public void AddOrder(Order o, DeliveryMethod dm)
However, is it possible to pass the Order and DeliveryMethod object directly to the service without them being in xml form first? Or does the interaction and transfer between the webservice and my website serialize when needed?
WCF supports many different bindings which allow you to decide what format to be used when calling the service. If you are using the standard basicHttpBinding
then your service will use a SOAP endpoint which implies XML. But any case when calling a web service you need to serialize/deserialize data before sending them on the wire.
精彩评论