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
11
votes
2 answers

How can I force namespace prefix usage?

I'm trying to consume a SOAP Webservice, but the WSDL is kind of broken, so I have to do some customization to node-soap. The ideal SOAP Envelope that I would like to have would be this one:
Rodrigo Sasaki
  • 7,048
  • 4
  • 34
  • 49
6
votes
2 answers

Soap server using node js

I'm trying to create a soap service with node js. It seems like the most common to do this is to use this lib: https://www.npmjs.com/package/soap They have this snippet: var myService = { MyService: { MyPort: { MyFunction:…
Alejandro Mosquera
  • 321
  • 2
  • 4
  • 13
6
votes
1 answer

SOAP for NodeJS without using WSDL

I'm dealing with a web service that only supports SOAP. Also, I have a NodeJS application, from where I'm supposed to use this service through soap calls. The biggest problem is, that the Web Service doesn't have a WSDL api description anywhere. So…
Ville Miekk-oja
  • 18,749
  • 32
  • 70
  • 106
6
votes
2 answers

Namespace for array field in node-soap client (Node.js)

How to configure node-soap client set namespace for array not only for objects? My params for 'sendPatient' method: params = { patientCard: { patient: { firstName: 'test', lastName: 'test' }, …
Swarthy
  • 305
  • 2
  • 8
5
votes
2 answers

How to add soap header using node-soap or strong-soap in node.js

I'm trying to use an xml web service soap client in node and I'm not sure how to add the soap header for my example. Looking at strong-soap, there is a method addSoapHeader(value, qname, options) but I'm not sure what I need to pass in as qname and…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
4
votes
1 answer

node-soap - TypeError: callback is not a function

I'm receiving the following generic TypeScript error when invoking a SOAP method on a node-soap client in NodeJS. How do I fix it? https://www.npmjs.com/package/soap - version: 0.35.0 Example Code const [result] = await…
Nick Grealy
  • 24,216
  • 9
  • 104
  • 119
4
votes
2 answers

How to add file attachment to soap request with node-soap library ?

I need to add an file attachment to a soap request from node.js application. I am able to send request with node-soap library, and now I need to add a file to the request. I did it with a java client or with soapUI, but I have to do it in node.js,…
Antoine
  • 4,456
  • 4
  • 44
  • 51
4
votes
3 answers

TypeError: obj.hasOwnProperty is not a function when calling Graphql mutation

I get a strange error and can't figure out what I am doing wrong. I wrote a graphql mutation to call an api: domainStuff: async (parent, { command, params }, { models }) => { console.log("Params:", params); const result = await dd24Api(command,…
Gh05d
  • 7,923
  • 7
  • 33
  • 64
4
votes
0 answers

How can I configure the Root Element of a node-soap request body?

I'm trying to call a SOAP method using the node-soap package. My service's WSDL is:
cristianzamar
  • 361
  • 4
  • 12
4
votes
1 answer

Connecting Bing Ads API using node-soap

I am trying to connect to bing ads soap api using node-soap. I have created the request as suggested in bing documentation. But each time I try to connect the response states the Invalid credentials (Error code - 105) Message - Authentication…
Dpk
  • 41
  • 1
  • 4
4
votes
1 answer

How to use derived types in node-soap

I'm using Node Soap https://github.com/vpulim/node-soap to send SOAP requests and parse the answers. Now I've got a service which has a derived type . How do I specify the…
Hedge
  • 16,142
  • 42
  • 141
  • 246
4
votes
1 answer

How do I set the prefix in node-soap?

Specifically does anyone know how I change the namespace from to and similarly attributes to something like soapenv:mustUnderstand="1" ? My code currently looks something like this: const soap = require('soap'); const…
magician11
  • 4,234
  • 6
  • 24
  • 39
4
votes
2 answers

Using Node to call SOAP Web Service over https

I am trying to use node-soap https://github.com/vpulim/node-soap to call a web service but I am having trouble using the module with https. In the code below I am using http and I can see the functions and log a describe() of the About function.…
mickeger
  • 948
  • 1
  • 6
  • 18
4
votes
2 answers

How to see request and response data in node soap?

I am trying to consume a soap api using node soap. My response cannot be parsed and I wonder how to see the request and response data to console to ease the error finding process.
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
4
votes
4 answers

Unexpected wrapper element SOAP wdsl error

Im trying to send request to a wdsl with node-soap client here is my code : var url = 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl'; soap.createClient(url, function(err, client) { var today = new Date(); …
Sina Miandashti
  • 2,087
  • 1
  • 26
  • 40
1
2 3
10 11