seneca-soap

0.1.4 • Public • Published

options

{
  server: yourServer, // (optional) http server instance
  port: 8004, // (optional) if server is not set, one will be started on this port

}

Usage

seneca.act({

    role: 'soap',

    cmd: 'register',

    name: 'myService'

    mappings: {

      apiName1: {
        role: 'myRole',
        cmd : 'myCmd'
      },

      apiName2: {
        role: '...',
        cmd : '...'
      }

    },

    wsdl: fs.readFileSync('./yourWsdl.wsdl')

  }, function(err) {

    // registered

  }
)

Package Sidebar

Install

npm i seneca-soap

Weekly Downloads

43

Version

0.1.4

License

MIT

Last publish

Collaborators

  • nherment