-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
wsdl generation - add ability to exclude portType name from generated classes and files #613
Comments
I would prefer something more generic like a search and replace in the class names, instead of adding something so specific to the wsdl mapper and I have been thinking this one for while now since I needed recently as well but it's not in my top priorities right now. In the mean time, we already have the aliases config that can achieve the same, it might be a bit tedious to add one entry per operation but it's there |
Is there any command or debug that would output the default generator config xml for a wsdl file? Then it would be easy enough to do a search and replace on the config to customize it as required. |
I am not sure what you mean but this is how you initialize a config
https://xsdata.readthedocs.io/en/latest/codegen.html#initialize-config |
hey @brunnels I just pushed an update for the generator config to introduce a search & replace process that completely repalces the older fixed aliases. Give it a look https://xsdata.readthedocs.io/en/latest/api/codegen.html Maybe something like this could do the trick, you can also try to play with regex patterns the process is now based on <Substitutions>
<Substitution type="class" search="NetworkManagementApi" replace=""/>
</Substitutions> Thanks for the suggestion! |
Can you please add a generator flag to omit the portType name from generated file names and class names? Something like
--omit-port_type_name
or something more elegant.I did this with a custom
Filters
class and it seems to work even with reserved keywords. I didn't immediately see a way to access the wsdl portType name from theFilters
class so I hardcoded it for testing but I may have missed it.The text was updated successfully, but these errors were encountered: