Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using soap-typescript #4

Open
yushaUzumo opened this issue Jun 19, 2018 · 1 comment
Open

Using soap-typescript #4

yushaUzumo opened this issue Jun 19, 2018 · 1 comment

Comments

@yushaUzumo
Copy link

yushaUzumo commented Jun 19, 2018

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

@RobinBuschmann
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants