XmlSerializer Serialize empty variable to use both tags?

后端 未结 3 1569
萌比男神i
萌比男神i 2020-12-10 08:15

I want to be able to load a serialized xml class to a Soap Envelope. I am starting so I am not filling the innards so it appears like:



        
3条回答
  •  甜味超标
    2020-12-10 08:41

    Note for the record: The OP was using the ***Microsoft.***Web.Services.SoapEnvelope class, which is part of the extremely obsolete WSE 1.0 product. This class derived from the XmlDocument class, so it's possible that the same issues would have been seen with XmlDocument.

    Under no circumstances should WSE be used for any new development, and if it is already in use, the code should be migrated as soon as possible. WCF or ASP.NET Web API are the only technologies that should be used for .NET web services going forward.

提交回复
热议问题