wsdl2java-gradle-plugin icon indicating copy to clipboard operation
wsdl2java-gradle-plugin copied to clipboard

Version 1.2 prohibits configuring package per namespace

Open legege opened this issue 4 years ago • 1 comments

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')

legege avatar Nov 26 '21 16:11 legege

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',
    ]
  ]

Jouramie avatar Mar 18 '24 18:03 Jouramie