Buy Questpond's video subscriptions on
huge discount
.
Online: 2540
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
WCF
>
Loading ...
What Happens If We did not mention [MessageBody] in MessageContract In WCF ? [Resolved]
Posted by
Kasani007
under
WCF
on 12/22/2016 |
Points: 10
| Views : 2718 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
What Happens If We did not mention [MessageBody] in MessageContract In WCF ?
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
A2H
on: 12/23/2016
[Member]
[MVP]
Silver
|
Points: 50
0
WCF uses soap messages to communicate. Usually we communicate in WCF using Datacontacts. However DataContract has limited control over the SOAP message.If you want to customize the soap messages we will use MessageContract.
Message contract cosists of
MessageContract : use to define a message contract for a type
MessageHeader : Use the MessageHeaderAttribute to those members of the type you want to make into SOAP headers
MessageBodyMember : Use the MessageBodyMemberAttribute to those members you want to make into parts of the SOAP body of the message.
If you dont mention MessageBody then the your wont be able to add any custom properties to the soap message
Reference Link :
https://msdn.microsoft.com/en-us/library/ms730255.aspx
Thanks,
A2H
My Blog
Kasani007
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...