Class BowireSoapProtocol

Namespace
Kuestenlogik.Bowire.Protocol.Soap
Assembly
Kuestenlogik.Bowire.Protocol.Soap.dll

Bowire protocol plugin for SOAP / WSDL 1.1 endpoints. Discovery fetches the WSDL document (either the URL the user typed directly, or the URL with ?wsdl appended), parses PortType operations

  • SOAP bindings into BowireServiceInfo entries, and invocation wraps the JSON-form payload in a SOAP envelope before POSTing it to the operation endpoint.
public sealed class BowireSoapProtocol : IBowireProtocol, IBowireManualEntry, IBowireProxySupport, IBowireUploadedSchemaReader, IBowireRequestPreview, IDisposable
Inheritance
BowireSoapProtocol
Implements
Inherited Members

Remarks

SOAP 1.1 is the default wire version; passing soap_version=1.2 in the invoke metadata flips both the envelope namespace and the Content-Type header per WS-I BP 1.1.

Streaming and channel surfaces aren't part of the SOAP wire — every SOAP operation is request/response. The plugin returns empty streams + null channels accordingly.

Constructors

BowireSoapProtocol()

public BowireSoapProtocol()

Properties

Description

One-line description shown next to the plugin's display name in Settings → Plugins. Optional; defaults to empty so the row falls back to "DisplayName + version" without the description line. Keep it short (≤ 100 characters) — the row truncates anything wider than the manage panel.

public string Description { get; }

Property Value

string

DescriptionKey

#691 — optional catalogue key for Description. When the workbench's active locale has an entry for it, that entry is shown; otherwise Description is, exactly as before. Third-party plugins leave it empty and keep today's behaviour.

public string DescriptionKey { get; }

Property Value

string

IconSvg

SVG icon for the protocol tab.

public string IconSvg { get; }

Property Value

string

Id

Short identifier (e.g., "grpc", "signalr").

public string Id { get; }

Property Value

string

Name

Protocol name shown in UI tabs.

public string Name { get; }

Property Value

string

ProxySupport

How far this plugin's connections follow the proxy.

public BowireProxySupport ProxySupport { get; }

Property Value

BowireProxySupport

Settings

Settings schema this plugin contributes to the Settings dialog. Each entry becomes a toggle/input in the plugin's section. Default implementation returns empty (no plugin-specific settings).

public IReadOnlyList<BowirePluginSetting> Settings { get; }

Property Value

IReadOnlyList<BowirePluginSetting>

UploadedSchemaKinds

The service's WSDL saved to a file, for a service that does not serve it at ?wsdl (#994).

public IReadOnlyList<BowireUploadedSchemaKind> UploadedSchemaKinds { get; }

Property Value

IReadOnlyList<BowireUploadedSchemaKind>

Methods

DescribeManualEntry()

The form a call to this protocol is entered with, or null when the plugin has none to give — a sidecar whose initialize reply carries no form, or one that has not been started (#1003).

public BowireManualEntryForm DescribeManualEntry()

Returns

BowireManualEntryForm

DiscoverAsync(string, bool, CancellationToken)

Discover available services and methods.

public Task<List<BowireServiceInfo>> DiscoverAsync(string serverUrl, bool showInternalServices, CancellationToken ct = default)

Parameters

serverUrl string
showInternalServices bool
ct CancellationToken

Returns

Task<List<BowireServiceInfo>>

Dispose()

Dispose the lazily-built HttpClient. Owners (registry or test 'using var') release the handler at scope exit.

public void Dispose()

Initialize(IServiceProvider?)

Called after registration to inject the app's service provider (embedded mode).

public void Initialize(IServiceProvider? serviceProvider)

Parameters

serviceProvider IServiceProvider

InvokeAsync(string, string, string, List<string>, bool, Dictionary<string, string>?, CancellationToken)

Invoke a unary or client-streaming call.

public Task<InvokeResult> InvokeAsync(string serverUrl, string service, string method, List<string> jsonMessages, bool showInternalServices, Dictionary<string, string>? metadata = null, CancellationToken ct = default)

Parameters

serverUrl string
service string
method string
jsonMessages List<string>
showInternalServices bool
metadata Dictionary<string, string>
ct CancellationToken

Returns

Task<InvokeResult>

InvokeStreamAsync(string, string, string, List<string>, bool, Dictionary<string, string>?, CancellationToken)

Invoke a server-streaming or duplex call.

public IAsyncEnumerable<string> InvokeStreamAsync(string serverUrl, string service, string method, List<string> jsonMessages, bool showInternalServices, Dictionary<string, string>? metadata = null, CancellationToken ct = default)

Parameters

serverUrl string
service string
method string
jsonMessages List<string>
showInternalServices bool
metadata Dictionary<string, string>
ct CancellationToken

Returns

IAsyncEnumerable<string>

LooksLikeUploadedSchema(string, ReadOnlyMemory<byte>)

A WSDL 1.1 document's root element is definitions in the WSDL namespace, which is what tells one saved as .xml from an EDMX model.

public bool LooksLikeUploadedSchema(string kind, ReadOnlyMemory<byte> document)

Parameters

kind string
document ReadOnlyMemory<byte>

Returns

bool

OpenChannelAsync(string, string, string, bool, Dictionary<string, string>?, CancellationToken)

Open an interactive channel (for duplex/client-streaming).

public Task<IBowireChannel?> OpenChannelAsync(string serverUrl, string service, string method, bool showInternalServices, Dictionary<string, string>? metadata = null, CancellationToken ct = default)

Parameters

serverUrl string
service string
method string
showInternalServices bool
metadata Dictionary<string, string>
ct CancellationToken

Returns

Task<IBowireChannel>

PrepareRequestAsync(string, string, string, IReadOnlyList<string>, IReadOnlyDictionary<string, string>?, CancellationToken)

#1064 — the request a call would send, for a code snippet: the envelope, its content type for the SOAP version and, in SOAP 1.1, the SOAPAction header.

public Task<BowirePreparedRequest?> PrepareRequestAsync(string serverUrl, string service, string method, IReadOnlyList<string> jsonMessages, IReadOnlyDictionary<string, string>? metadata, CancellationToken ct = default)

Parameters

serverUrl string
service string
method string
jsonMessages IReadOnlyList<string>
metadata IReadOnlyDictionary<string, string>
ct CancellationToken

Returns

Task<BowirePreparedRequest>

ReadUploadedSchema(string, ReadOnlyMemory<byte>, string)

The port types an uploaded WSDL declares, as discovery reports them from ?wsdl.

public IReadOnlyList<BowireServiceInfo> ReadUploadedSchema(string kind, ReadOnlyMemory<byte> document, string sourceName)

Parameters

kind string
document ReadOnlyMemory<byte>
sourceName string

Returns

IReadOnlyList<BowireServiceInfo>