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

Version 1.2 prohibits configuring package per namespace #17

Open
legege opened this issue Nov 26, 2021 · 1 comment
Open

Version 1.2 prohibits configuring package per namespace #17

legege opened this issue Nov 26, 2021 · 1 comment

Comments

@legege
Copy link

legege commented Nov 26, 2021

It's no longer possible to specify the package name to be used per namespace.

Like specified in wsdl2java documentation, it's possible to change the package name per XML namespace: -p <[wsdl-namespace =]package-name>*.

Version 1.2 makes it impossible to specify this:

    options.addAll('-p', 'http://www..../service=com.example.service')
    options.addAll('-p', 'http://www..../local=com.example.local')
    options.addAll('-p', 'http://www..../common=com.example.common')
@Jouramie
Copy link

The ideal solution would be to have #29 merged and released, but in the meantime, if someone gets here looking for a solution, I ended up injecting the parameters via the includesWithOptions.

Something like this worked for my use case:

  includesWithOptions = [
    "**/*.wsdl": [
      '-p', 'http://www..../service=com.example.service',
      '-p', 'http://www..../local=com.example.local',
      '-p', 'http://www..../common=com.example.common',
    ]
  ]

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