XRoadLib


Style

Namespace: XRoadLib.Styles

X-Road message serialization style.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Instance members

Instance memberDescription
AddItemElementToArrayElement(...)
Signature: (arrayElement:XmlSchemaElement * itemElement:XmlSchemaElement * addSchemaImport:Action<string>) -> unit
Modifiers: abstract

Create array item element for collection type.

CreateExpectedContentType(contentType)
Signature: contentType:string -> XmlAttribute
Modifiers: abstract

Add expected content type attribute for binary content.

CreateSoapBinding()
Signature: unit -> SoapBinding
Modifiers: abstract

Create soap binding element for current style.

CreateSoapBodyBinding(targetNamespace)
Signature: targetNamespace:string -> SoapBodyBinding
Modifiers: abstract

Create soap body binding for current style.

CreateSoapHeaderBinding(...)
Signature: (headerName:XName * messageName:string * targetNamespace:string) -> SoapHeaderBinding
Modifiers: abstract

Create header binding binding for current style.

CreateSoapOperationBinding()
Signature: unit -> SoapOperationBinding
Modifiers: abstract

Create operation binding for current style.

SerializeFault(writer, fault)
Signature: (writer:XmlWriter * fault:IXRoadFault) -> unit
Modifiers: abstract
StringSerializationMode
Signature: StringSerializationMode
Modifiers: abstract

Preferred string serialization mode.

UseElementInMessagePart
Signature: bool
Modifiers: abstract

Should message definitions use type or element references.

WriteExplicitArrayType(...)
Signature: (writer:XmlWriter * itemQualifiedName:XName * arraySize:int) -> unit
Modifiers: abstract

Writes explicit array type attribute if style requires it.

WriteExplicitType(writer, qualifiedName)
Signature: (writer:XmlWriter * qualifiedName:XName) -> unit
Modifiers: abstract

Writes explicit type attribute if style requires it.

WriteHeaderElement(...)
Signature: (writer:XmlWriter * name:XName * value:obj * typeName:XName) -> unit

Serializes X-Road SOAP message header element.

WriteSoapEnvelope(...)
Signature: (writer:XmlWriter * producerNamespace:string) -> unit
Modifiers: abstract

Serializes beginning of SOAP envelope into X-Road message.

WriteSoapHeader(...)
Signature: (writer:XmlWriter * header:IXRoadHeader * definition:HeaderDefinition * additionalHeaders:IEnumerable<XElement>) -> unit
Modifiers: abstract
WriteType(...)
Signature: (writer:XmlWriter * typeDefinition:TypeDefinition * expectedType:Type * disableExplicitType:bool) -> unit
Modifiers: abstract

Writes element type attribute according to style preferences.

Fork me on GitHub