Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SOAP fault element? #2

Open
michal93cz opened this issue Jan 9, 2018 · 1 comment
Open

Support SOAP fault element? #2

michal93cz opened this issue Jan 9, 2018 · 1 comment

Comments

@michal93cz
Copy link

Hello, do you also support throwing SOAP fault like in node-soap: https://github.com/vpulim/node-soap#soap-fault ?

@RobinBuschmann
Copy link
Owner

Yes, since this package uses node-soap under the hood, you should be able to use them like this.

subtract(data: CalculatorInput, res: (res: CalculatorResult) => any): void {

    res({
      throw {
    Fault: {
      Code: {
        Value: 'soap:Sender',
        Subcode: { value: 'rpc:BadArguments' }
      },
      Reason: { Text: 'Processing Error' },
      statusCode: 500
    }
  }
    });
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants