cancel
Showing results for 
Search instead for 
Did you mean: 

Invoking SOAP Service from CAP Node.js application

06-21-2021 3:20 PM
693 views 1 comments
SAP Managed Tags
Subscribe

Hello Experts,

We are developing a CAP application where we are using node.js layer to invoke our OData services for some scenarios. We have once scenario in our app where, we need to invoke SOAP service (Service available under SProxy) through node.js code. We are trying to use soap library from npm package however, with the client which is getting created, we are not sure which method to call on SOAP service. Our code is as follows -

soapMessage is our SOAP payload below.

var soap = require('soap');

var url = 'WSDL_URL';

soap.createClient(url,function (err, client) {

client.setSecurity(new soap.BasicAuthSecurity('username','password'));

client.FunctionToCallOnService(soapMessage, function (err, result) {

return result;

});

});

In Above code, we are not sure what to invoke in place of FunctionToCallOnService , can you please let us know how to check the events/methods available and can be invoked on soap service ?

Thanks ,

Mahesh Zeple.

Accepted Solutions (0)

Answers (1)

Answers (1)

FabienHenique
Participant
0 Likes

Hello,

Was you able to find a way to achieve this? Can we use destination service on top of that?