Skip to content

Preserve displayName and description after WSDL import - #874

Open
SiebeCorstjens wants to merge 1 commit into
Azure:mainfrom
SiebeCorstjens:fix/wsdl-import-overwrites-display-properties
Open

Preserve displayName and description after WSDL import#874
SiebeCorstjens wants to merge 1 commit into
Azure:mainfrom
SiebeCorstjens:fix/wsdl-import-overwrites-display-properties

Conversation

@SiebeCorstjens

Copy link
Copy Markdown

Problem

When publishing a SOAP API using a WSDL specification file, APIM's WSDL import process re-derives certain API properties, specifically displayName and description, from the WSDL binding name and overwrites the original values configured for the API (e.g. via apiInformation.json). This causes unexpected metadata drift on every publish run for a SOAP API.

Solution

In putWsdlSpecification (src/common/ApiSpecification.cs), the original displayName
and description are now:

  1. Captured from the API's existing DTO (via GetResourceDtoFromApim) before the
    WSDL specification import is performed.
  2. Re-applied after the import completes, but only when:
    • The target is the root API revision (ApiRevisionModule.IsRootName), since non-root revisions do not independently own these properties.
    • At least one of the two values (description or displayName) was present beforehand, avoiding unnecessary API calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant