You can add the headers to the configuration like below;
mesh.config.ts
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: { // The name of the alias to be used in the envelope for header components alias: 'header', namespace: 'http://foo.com', headers: { MyHeader: { UserName: 'user', Password: 'password' // You can also use environment variables, so it will get the value on runtime Password: '{env.SOAP_PASSWORD}' } } } }) } ]})
Custom Body Alias
You can now choose the name of the alias you want to use for SOAP body;