Questions tagged [node-soap]

noad-soap is a SOAP client and server for node.js.

node-soap is a SOAP client and server for node.js.

https://github.com/vpulim/node-soap

152 questions
1
vote
0 answers

Node Soap - http get request return index.html

I am using https://github.com/vpulim/node-soap a soap client and server for node.js I have created my own SOAP server. The client can execute methods on the SOAP server and the server sends a response to the client which match the appropriate client…
eftas
  • 139
  • 5
1
vote
0 answers

How to fix "attribute xmlns:wsse invalid" error where calling SOAP web service in NodeJS using node-soap

I am trying to call a web service that requires authetication via X509 certificate. I'm using Node.js and node-soap module, getting successfully the WSDL. But when I try to build the SOAP envelope with the Signature tag inside, I get the following…
jairochapela
  • 38
  • 1
  • 6
1
vote
1 answer

XML string for Node-Soap args

I'm trying to make a soap request using the method as described here: https://www.npmjs.com/package/soap#example-with-xml-string-for-the-args. I want to input a xml string instead of a JSON object since i can't achieve the required syntax in…
1
vote
1 answer

node-soap client: how to setup timeouts and keep-alive?

Is there an easy way of setting up timeouts and keep-alive for node-soap clients? It would be useful to setup: socket connection timeout; socket read timeout; request timeout; keep-alive (enable/disable); keep-alive heartbeat interval.
marciopd
  • 132
  • 11
1
vote
0 answers

Soap Web services monitoring, telemetry and metrics with node.js

For rest apis, there are libraries like swagger-stats and prometheus-api-metrics to support api metrics / telemetry. I am using node-soap, is there a library that supports web services metrics / telemetry? I've tried searching npmjs.com but couldn't…
Technoshaft
  • 679
  • 6
  • 18
1
vote
0 answers

Remove and Override few attributes from soap request xml before sending

In node-soap client, I have to remove xmlns:xsi and override xmlns:tns with xmlns:ser I have tried a lot but unable to do so. Need Help const url = 'http://host:9001/xyz/abc/something?wsdl'; var wsdlOptions = { "overrideRootElement": { …
k-kundan
  • 46
  • 6
1
vote
1 answer

Response encoding node-soap

I'm trying to fetch utf-8 characters (accents) using node-soap but i'm getting strange chars (printed in console as '?'). I'm able to see accents in Soap UI. soap.createClient('https://example.com/data.php?wsdl',options, (err, client) => { if…
Yamila
  • 443
  • 1
  • 9
  • 20
1
vote
1 answer

Simple SOAP call with Node using Strong-Soap

I'm trying to call a simple method created within my SOAP service that returns "Hello, World!". I've been able to successfully call this method using SoapUI, so I know it works. Currently, all that's being printed out is an empty object. I have hit…
CStreet
  • 365
  • 1
  • 5
  • 20
1
vote
1 answer

How to choose the port by node soap

if the wsdl have two port, how can i choose the name http? Used the node package https://www.npmjs.com/package/soap
Ted
  • 272
  • 1
  • 3
  • 7
1
vote
1 answer

How do you get the server url to give to the client when using Node-soap or Strong-soap

I am writing a service with node.js' node-soap package. The service seem to run okay when I do "node myService.js". Now, how do I get the url that would be given to the client? If you want my wsdl file, "myservice.wsdl" as per the code below please…
yusha uzumo
  • 211
  • 1
  • 4
  • 15
1
vote
0 answers

Getting the response status code from node-soap

I wanted to get the status code of the soap response in the client getRoleListOfUser function in the nodejs app. return new Promise((resolve, reject) => { soap.createClient(url, function(err, client) { if (err){ …
Buvin Perera
  • 481
  • 1
  • 6
  • 18
1
vote
2 answers

Node JS Soap to send a file to sharepoint based webserver using CopyIntoItems

I am writing a Node JS SOAP client using Node-Soap module to send a file to a remote SharePoint based Web Services. The machine client requires a proxy to access Internet and the SharePoint WS requires an account (user, pwd). Below are the code…
1
vote
1 answer

node.js soap attachments files/ cid href

i'm using node-soap to consume laposte web service which is suppose to send me a response with a PDF attachment. But what I get is not a file but a href such as the following href: 'cid:c482ea77-cc5b-406f-8596-295470ce8049-100134@cxf.apache.org' In…
Arnaud Derbey
  • 31
  • 1
  • 5
1
vote
2 answers

Send cookie using node-soap

I haven't used soap until now. I'm using node-soap library (https://github.com/vpulim/node-soap). I want to communicate with soap server. To maintain the session the server sends me set-cookie response header: 'ASP.NET_SessionID=55....hrc; path/;…
croraf
  • 4,332
  • 2
  • 31
  • 50
1
vote
1 answer

Create a byte array to pass to a SOAP service with node-soap

For an API I need the possibility to create a byte array from a local pdf file. I've already checked StackOverflow, but the existing solutions do not work. Whenever I try to execute the code I get a bad request from the soap API. If I send zero…
sm_a
  • 11
  • 4