Layer7-Community / graphman-client

This repository contains a Postman collection, a Node.js CLI application, sample queries for the CLI, and GraphQL schemas for the Graphman API.
Other
7 stars 5 forks source link

wsdl schema references to other xsd files are not exported #63

Closed res13 closed 2 months ago

res13 commented 2 months ago

I noticed that when I export an api gateway config, it does not export the external xsd files that are referenced in a wsdl like so:

<xsd:import schemaLocation="xsds/myXsdExample.xsd" namespace="urn:example.com:enterprise:schemas:reference:currency" />

This leaves the exported json file in an incomplete state. In the (old) restman this was working.

graju256 commented 2 months ago

@res13 I suppose, it is about exporting SOAP services with full WSDL definition.

If yes, we've fixed this functional gap by extending the schema with the v11.1.1 release. Try exporting the soap services by including the below additional fields

For full query, you may use the following describe command

graphman.sh describe --query serviceByResolutionPath

[info] query serviceByResolutionPath
query serviceByResolutionPath($resolutionPath: String!) {
  serviceByResolutionPath(resolutionPath: $resolutionPath) {
    goid
    guid
    name
    resolutionPath
    resolvers {
      soapActions
      baseUri
      resolutionPath
    }
    serviceType
    checksum
    enabled
    folderPath
    soapVersion
    methodsAllowed
    tracingEnabled
    wssProcessingEnabled
    laxResolution
    properties {
      name
      value
    }
    wsdlUrl
    wsdl
    wsdlResources {
      uri
      content
    }
    policy {
      xml
    }
  }
} 
res13 commented 2 months ago

@graju256 nice thanks. In that case I have one more reason to patch my gateway to the newest release. /