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

Running into an issue with OpenBraceToken child on valid wsdl #62

Open
roopakv opened this issue Aug 31, 2023 · 3 comments
Open

Running into an issue with OpenBraceToken child on valid wsdl #62

roopakv opened this issue Aug 31, 2023 · 3 comments

Comments

@roopakv
Copy link

roopakv commented Aug 31, 2023

Thank you for putting this project together! Really helpful :)

I'm trying to generate a ts-client for a valid wsdl and running into an error A child of the kind OpenBraceToken was expected

I've attached the wsdl file here, curious if I am missing something or what the bug might be. I'm pretty sure ts-morph is throwing the error but unsure if the error is how it is being called or something else.

Human_Resources.wsdl.zip

@peterarusanoff
Copy link

peterarusanoff commented Nov 8, 2023

I am getting the same error here and the wsdl is Valid

I am getting Error: A child of the kind OpenBraceToken was expected.

I am not getting out an index file or the client in the generated folder

@peterarusanoff
Copy link

I found what the issue is with
in src/generator.ts on line 322
createClientDeclaration.setBodyText("return soapCreateClientAsync(args[0], args[1], args[2]) as any;");
the generator errors out here. I am very curios as to why

@peterarusanoff
Copy link

So after digging in a little bit deeper, The file. name of my WSDL started with a number (1) . This caused all kinds of problems with the generator.

I am still not sure why it caused a problem with the setBodyText method above but it did

Further down in the index generator it caused another issue there

Once I removed the number from the file name the generator created all the definitions and the client as well as the index file.

Unfortunately after I generated the index I started to notice another issue.
12 imported file names where wrong
Either the case was wrong in the interface or the file path was wrong
image
I had one duplicate on FareRouteGrp

file ./definitionsOffpointDetails1 did not exist but ./definitions/OffPointDetails1 did
and the definition from that file was imported 3 separate times I guess ill open another ticket

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