OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Node.js soap.createClientAsync() and wsdl as a string

  • Thread starter Thread starter Alexander
  • Start date Start date
A

Alexander

Guest
How to create a soap client in Node.js using the npm soap package if I have the wsdl as a string?

Code:
const soap = require('soap')
const wsdl = '<definitions> ... </definitions>'

const client = await soap.createClientAsync(wsdl) // Wrong: soap thinks that wsdl is a filename

P.S. save the wsdl string into a file is not an option

<p>How to create a soap client in Node.js using the npm soap package if I have the wsdl as a string?</p>
<pre><code>const soap = require('soap')
const wsdl = '<definitions> ... </definitions>'

const client = await soap.createClientAsync(wsdl) // Wrong: soap thinks that wsdl is a filename
</code></pre>
<p>P.S. save the wsdl string into a file is not an option</p>
 

Latest posts

M
Replies
0
Views
1
Mohit Pant
M
Top