Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i am creating Operation contracts it is working fine while consuming it is not supporting.

What I have tried:

I am simply remove the web method tag and decorate the code with operation contract there is no code change. I have tried to change the XMLDocument as return type to XMLElement but the inner code is designed for the whole xmldocument return.

Please do help me.
Posted
Updated 18-May-17 0:46am

1 solution

You might use
C#
XmlSerializerFormat

C#
[OperationContract,XmlSerializerFormat]
XmlDocument YourMethod();

Also you could redesing the code to return
C#
XElement
instead
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900