How to use the @seagull/seed.FixtureStorage.createByWsdlUrl function in @seagull/seed

To help you get started, we’ve selected a few @seagull/seed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seagull-js / seagull / packages / services-soap / src / mode / seed.ts View on Github external
async getClient(opts: ClientOptions): Promise {
    try {
      const wsdl = await this.fetchWsdl(opts)
      const endpoint = getEndpoint(opts)
      if (!wsdlIsFile(opts)) {
        const seed = FxSt.createByWsdlUrl(endpoint)
        try {
          seed.get()
          if (seed.expired) {
            throw new Error()
          }
        } catch {
          seed.set(wsdl)
        }
      }
      const client = await getClientInternal(opts)
      const seedClient = await this.seedifyClient(client, endpoint)
      return seedClient
    } catch (e) {
      throw new SoapError(
        `Unable to create the SOAP seed mode client: ${e.message}`,
        e

@seagull/seed

Seed implementation for the seagull framework

LGPL-3.0
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis