I am creating a WCF client in an external REST API, but the following error is taking place:
< Blockquote>An invalid message body facing Operation Former
The client hits the server properly and requires 'post', but it is expecting a different response Element, basically 'Response to the name of the Operation Contract, such as:
Operationformer faces an invalid Was Ndesh body. The node type 'element' was expected to match with the name 'CompanySpons' and Nameshot ''. Name 'Company' and Namesh place ''
Did the node type 'element' be found? Does anyone know how to remove the requirement to add it to 'Response' name?
Additional details (I added the answer, but it did not make any difference):
[Operation contract (name = "company", action = "company", answer action = "Company")] [webinvoke (method = "post", bodystyle = web messagebodesty. Rps, response format = webmailformat.exml, erematamplet = "companies.exml"]] company adcompany (company company);
To strengthen the bodystyle in the Operation Agreement wrapped . Change BodyStyle to WebMessageBodyStyle.Bare .
This WCF tells runtime that a wrapper is not included to name the name = an XML node with the name name + the word "reaction"
Comments
Post a Comment