Skip to content

January 08, 2025

Latest
Compare
Choose a tag to compare
@theguild-bot theguild-bot released this 08 Jan 09:41
· 6 commits to master since this release
980f8cb

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

  • #8196
    3fc1f3e
    Thanks @ardatan! - - You can now choose the name of the alias you
    want to use for SOAP body;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    
    export const composeConfig = defineConfig({
      sources: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            bodyAlias: 'my-body'
          })
        }
      ]
    })
    • Then it will generate a body like below by using the alias;
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my-body="http://foo.com/">
       <soap:Body>
          <my-body:Foo>
              <my-body:Bar>baz</my-body:Bar>
          </my-body:Foo>
       </soap:Body>
    </soap:Envelope>

    If you want to add SOAP headers to the request body like below;

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:header="http://foo.com/">
       <soap:Header>
          <header:MyHeader>
             <header:UserName>user</header:UserName>
             <header:Password>password</header:Password>
          </header:MyHeader>
       </soap:Header>

    You can add the headers to the configuration like below;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    import { loadSOAPSubgraph } from '@omnigraph/soap'
    
    export const composeConfig = defineConfig({
      subgraphs: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            soapHeaders: {
              alias: 'header',
              namespace: 'http://foo.com',
              headers: {
                MyHeader: {
                  UserName: 'user',
                  Password: 'password'
                }
              }
            }
          })
        }
      ]
    })
  • Updated dependencies []:

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

  • #8196
    3fc1f3e
    Thanks @ardatan! - dependencies updates:

  • #8196
    3fc1f3e
    Thanks @ardatan! - - You can now choose the name of the alias you
    want to use for SOAP body;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    
    export const composeConfig = defineConfig({
      sources: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            bodyAlias: 'my-body'
          })
        }
      ]
    })
    • Then it will generate a body like below by using the alias;
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my-body="http://foo.com/">
       <soap:Body>
          <my-body:Foo>
              <my-body:Bar>baz</my-body:Bar>
          </my-body:Foo>
       </soap:Body>
    </soap:Envelope>

    If you want to add SOAP headers to the request body like below;

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:header="http://foo.com/">
       <soap:Header>
          <header:MyHeader>
             <header:UserName>user</header:UserName>
             <header:Password>password</header:Password>
          </header:MyHeader>
       </soap:Header>

    You can add the headers to the configuration like below;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    import { loadSOAPSubgraph } from '@omnigraph/soap'
    
    export const composeConfig = defineConfig({
      subgraphs: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            soapHeaders: {
              alias: 'header',
              namespace: 'http://foo.com',
              headers: {
                MyHeader: {
                  UserName: 'user',
                  Password: 'password'
                }
              }
            }
          })
        }
      ]
    })
  • Updated dependencies
    [3fc1f3e,
    4011203]:

@omnigraph/[email protected]

Patch Changes

@omnigraph/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

  • #8196
    3fc1f3e
    Thanks @ardatan! - - You can now choose the name of the alias you
    want to use for SOAP body;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    
    export const composeConfig = defineConfig({
      sources: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            bodyAlias: 'my-body'
          })
        }
      ]
    })
    • Then it will generate a body like below by using the alias;
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my-body="http://foo.com/">
       <soap:Body>
          <my-body:Foo>
              <my-body:Bar>baz</my-body:Bar>
          </my-body:Foo>
       </soap:Body>
    </soap:Envelope>

    If you want to add SOAP headers to the request body like below;

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:header="http://foo.com/">
       <soap:Header>
          <header:MyHeader>
             <header:UserName>user</header:UserName>
             <header:Password>password</header:Password>
          </header:MyHeader>
       </soap:Header>

    You can add the headers to the configuration like below;

    import { defineConfig } from '@graphql-mesh/compose-cli'
    import { loadSOAPSubgraph } from '@omnigraph/soap'
    
    export const composeConfig = defineConfig({
      subgraphs: [
        {
          sourceHandler: loadSOAPSubgraph('CountryInfo', {
            source:
              'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL',
            soapHeaders: {
              alias: 'header',
              namespace: 'http://foo.com',
              headers: {
                MyHeader: {
                  UserName: 'user',
                  Password: 'password'
                }
              }
            }
          })
        }
      ]
    })
  • Updated dependencies
    [3fc1f3e,
    4011203]:

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes