I'm trying to make a SOAP request to external API using node-soap. The Root element inside Body is taken from WSDL schema. Is it possible to change it somehow before request?
Here's the client creation and request sending:
let client = await…
Created a soap api with the node-soap library but when i try to throw a fault using
throw {
Fault: {
Code: {
Value: 'soap:Sender',
Subcode: { value: 'rpc:BadArguments' }
},
Reason: { Text: 'Processing Error' }
…
I am testing a call to a SOAP service using node-soap library.
This works fine as a standalone node.js app and the SOAP service responds, however when I package the same code up as a serverless AWS lambda function (using serverless framework, but…
In a node-soap server, how do I change the HTTP headers of a node-soap server response?
In a client request, I can add extra HTTP headers like so
client.addHttpHeader('User-Agent', `CustomUserAgent`);
However, what I need is to change the HTTP…
I use node-soap to manage SOAP requests/responses on server side. I'm using server.log function to log requests and responses and I need to somehow map them (connect) to know which request caused a certain response.
See the code sample:
function…
I'm facing a pretty annoying problem regarding sending soap-requests.
If I use a tool like SOAP-UI, i can easily build a proper soap-request in XML.
But if I'm trying to use node-soap to send this soap-request I am not able to get the right…
I have some sample code that looks like the following:
var soap = require('soap');
var url = "http://www.example.com?wsdl";
var soapHeader = "...";
soap.createClient(url, function(err, client){
…
I'm using node-soap to connect to a SOAP API, and calling a query method which returns an array of objects with the fields specified in the request. However, the result object returned by node-soap is missing properties for records where the field…
I have a running sails.js application. It mostly uses models and its corresponding controllers with REST blueprint actions.
In addition, I need to expose a SOAP endpoint and I ended up using node-soap.
All the official examples are coded with…
Is it required that each schema must have a unique namespace in a wsdl?
For an example consider the below WSDL snippet which does not have a namespace for the schemas.
…
I am trying to use node-soap to communicate with Amazon Mechanical Turk. I initialize the soap client with this wsdl but when I try calling client.(...) for any of the operations listed in the Mechanical turk API, I found that the…