Layer7 API Management

 View Only
  • 1.  SOAP WSDL Documents download

    Posted Jun 11, 2021 12:34 PM
    Hi,

    We have some wilcard APIs that targats REST or SOAP endpoints.
    Whenever someone tries to fetch WSDL using ?wsdl, Gateway intercept it and reutns error as we are not exposing directly WSDL.
    Only way seems to disabled the entire service with CWP "service.wsdlQueryEnabled".

    But wouldn't it be simplier if when somebody calls a REST API to actually not even try to fetch the WSDL for this API and let it passthrough the url_query ?
    Maybe this option already exists and I didn't find it (yet) ?


  • 2.  RE: SOAP WSDL Documents download

    Posted Jun 15, 2021 10:38 AM
    I believe you need to add the following global settings:
    service.wsdlDependenciesEnabled true
    service.wsdlQueryEnabled true

    this tripped us up for a while, until these are enabled the gateway won't allow schema to be downloaded.


  • 3.  RE: SOAP WSDL Documents download

    Posted Jun 16, 2021 03:15 AM
    thx Sjmeyer.
    But what we want is quite near the opposite :) we want to doanload a wsdl only if it is indeed exposed, othewise, passthrough as an url_query.

    - If a service has WSDL definition (Soap service) then ?wsdl can fetch the doc
    - If a service is a REST, then let ?wsdl passthrough as we need to D/L it from the backend application.

    This REST API has dynamic routing and can target multiple  REST or Soap services.