Gemstone PhasorProtocols Library
Show/Hide TOC

# LegacySoapSerializer Class

Serializes ISerializable object graphs as legacy SOAP-formatted XML, matching the wire format produced by the .NET Framework System.Runtime.Serialization.Formatters.Soap.SoapFormatter.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.181 -- Release Build+69c74c3448bebb1c8c739a856f2a43b00db6d500
C#
View Source Request Example

    public static class LegacySoapSerializer

VB
View Source Request Example

    Public NotInheritable Class LegacySoapSerializer

C++
View Source Request Example

    public ref class LegacySoapSerializer abstract sealed

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.LegacySoapSerializer = function();

    Type.createClass(
    	'Gemstone.PhasorProtocols.LegacySoapSerializer');

Inheritance
  Object LegacySoapSerializer

## Remarks

Pairs with LegacySoapDeserializer to round-trip phasor protocol configuration frames in .NET Core / .NET 5+ without dependence on the third-party SoapFormatter NuGet port.

Discovers the object graph breadth-first by invoking each instance's GetObjectData(SerializationInfo, StreamingContext), assigns sequential ref-N identifiers, and emits a flat SOAP-ENV:Body with one element per object. Object-typed field values become href references, enums get inline xsi:type annotations with their CLR namespace declared inline, nulls become xsi:null="1", and primitives are written as text content.

## Methods

Serialize | Serializes root and its reachable graph as legacy SOAP XML.

## See Also

#### Reference

Gemstone.PhasorProtocols Namespace