Since the namespace cannot be specified in an element encapsulating all parameters, the namespace must be specified individually for each parameter and return value. Applying an XmlElementAttribute to each parameter and to the return value, and setting the
Namespace property, can do this.
Member
31 Points
60 Posts
Removing auto generate result tag from the response
Mar 15, 2017 09:26 AM|kamlesh.saini.bca|LINK
i am devloping an ASMX web service my requriment is to Removing auto generate result tag from the response
i am returning the soap Envelope object design my me. my requriment is remove all the auto generate soap tag
i want only my soap envelop result
please help
kamlesh kumar saini
Sr developer
Please do not forget to mark as answer if my post help you!
All-Star
17652 Points
3510 Posts
Re: Removing auto generate result tag from the response
Mar 16, 2017 01:27 AM|Chris Zhao|LINK
Hi Kamlesh,
To remove restult tag from soap response.
Since the namespace cannot be specified in an element encapsulating all parameters, the namespace must be specified individually for each parameter and return value. Applying an XmlElementAttribute to each parameter and to the return value, and setting the Namespace property, can do this.
reference: https://msdn.microsoft.com/en-us/library/bb559021(v=vs.85).aspx
Best Regards,
Chris