-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Question] How to handle "complex" types extending primitives? #37
Comments
Flagging @esivkov to this one! |
Hi, wsdl-tsclient only inherits parsed types from node-soap and then generates client.... Some complex types are too "complex" :/ . Right now, there's no easy solution for this. I think it should be handled first by |
You can pass a We do this for example to generate On the reverse-direction you can pass custom-types as arguments into WSDL methods generated by node-soap as long as they provide a string Example File: OrgUnitService.wsdl.txt With example customDeserializer:
And example custom type:
This custom-type can be used as any In my customized type-definitions I can ensure that |
Addendum: This not only affects complex-types but (understandably) any An option to pass in a custom type mapping from WSDL TypeDefinition to TypeScript type would be nice or as an alternative Line 158 in 60d1eda
Line 98 in 60d1eda
For example replace |
We have a supplier's WSDL containing something like this:
Here,
node-soap
will either return astring
(in case there's nokurz
attribute) or something like:Currently it seems to me that
wsdl-tsclient
emits this as a simplestring
, for example:generates:
What am I doing wrong? Any idea?
The text was updated successfully, but these errors were encountered: