I want to send a xml file to my wcf service , how can I send it ?
Is there any way with Data Contracts or Message Contracts?
Please help.
I want to send a xml file to my wcf service , how can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do something like this:
So, first you load the XML file in the XmlDocument object, then you adapt the above sample to send it.
I wrote a post about that a while ago: http://www.pvle.be/2009/02/send-xmldocument-using-windows-communication-foundation/