0.1.0 • Published 6 years ago

soap-graphql-demo v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

soap-graphql-demo

Demo application for soap-graphql.

Uses:

Installation

npm install -g soap-graphql-demo

Usage

Example Server

soap-graphql-demo

Starts an example server for these openly available SOAP endpoints:

Serve a single SOAP endpoint

soap-graphql-demo <<url-to-wsdl>>

Starts a server for a single SOAP endpoint. url-to-wsdl can be either a web URL or a path to a local WSDL file.

Example:

soap-graphql-demo http://www.webservicex.net/isbn.asmx?WSDL

Use a config file

soap-graphql-demo --config <<path-to-config-file>>

Starts a server based on the given config. path-to-config-file must be absolute or relative path to a config file.

Config file must look like this:

{
    "port": 4001,
    "path": "/my-graphql",
    "endpoints": {
        "bible": "http://www.webservicex.net/BibleWebservice.asmx?WSDL",
        "braille": "http://www.webservicex.net/braille.asmx?WSDL"
    }
}

port: Port on which the server will be served, defaults to 4000.

path: Path on which the GraphQL schema will be served, defaults to /graphql.

endpoints: List of SOAP endpoints.