You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to node.js and I want to create a wsdl file for my node-soap or strong-soap service (on server). I know this question does not belong here but I have been looking for detailed examples of your soap-typescript package on the web with no luck. So what I did is I pasted the first three code snippets as per the readme in https://www.npmjs.com/package/soap-decorators, onto one file called createWsdl.js and then I ran "node createWsdl.js" and I get error: Unexpected token import. I also tried to run <GET /soap/calculation?wsdl> from linux shell command line. It seems to run fine but I am not convinced it picked up the code in createWsdl.js and I also don't know where its output is written/logged. Could you please point me to a detailed example.
Sorry for posting this question here, and sorry for asking you to spoon feed me; as I said I am new to node.js. Thank you.
Sry for the late reply. Are you using typescript or Babel? es6 modules aren‘t supported with js files in node. That’s why you need to precompile your code.
You could give typescript a try ;) if you use ts-node with it, you could run your ts files simply with node -r ts-node/register index.ts
Hi Robin/ anyone,
I am new to node.js and I want to create a wsdl file for my node-soap or strong-soap service (on server). I know this question does not belong here but I have been looking for detailed examples of your soap-typescript package on the web with no luck. So what I did is I pasted the first three code snippets as per the readme in https://www.npmjs.com/package/soap-decorators, onto one file called createWsdl.js and then I ran "node createWsdl.js" and I get error: Unexpected token import. I also tried to run <GET /soap/calculation?wsdl> from linux shell command line. It seems to run fine but I am not convinced it picked up the code in createWsdl.js and I also don't know where its output is written/logged. Could you please point me to a detailed example.
Sorry for posting this question here, and sorry for asking you to spoon feed me; as I said I am new to node.js. Thank you.
I have posted a question on stack overflow in case you want to answer there: https://stackoverflow.com/questions/50962718/robinbuschmann-soap-typescript-soap-decorators-example
The text was updated successfully, but these errors were encountered: