简体   繁体   中英

How does WCF create/read SOAP Messages

I know that WCF is a framework used to build Web Services, and that when a service is run a WSDL is automatically generated.

I also know that BasicHttpBinding allows the Web Service to expect SOAP Messages to be transferred to and from it's endpoint.

How does WCF handle the sending/receiving of SOAP Messages? What does the Framework do to build these SOAP Messages and to Map the Message Body to the Service Operations (given in the WSDL)?

A binding is a collection of binding elements. WCF comes with a few bindings out-of-the-box, such as the BasicHttpBinding, created from a few selected binding elements.

The BasicHttpBinding uses an encoding element (specifically the TextMessageEncodingBindingElement ) that (de)serialize your object to and from a SOAP message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM