jax-ws
  1. jax-ws
  2. JAX_WS-661

wsimport utility should not override ObjectFactory class while generating code for multiple wsdl sharing same schema

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: not determined
    • Component/s: wsimport
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      661

      Description

      While generating the java stub code through wsimport for multiple wsdls sharing
      same (some of them) schema the ObjectFactory java class gets overwritten every time.

      1. It's very difficult to merge the ObjectFactory class manually
      2. If we provide seperate namespance (-p option) the java objects will get get
      repeated in each package & writing code becomes very difficult.
      3. We neither can rename or put the ObjectFactory class in different package as
      it results in JAXBContext security error.

      So ideally either wsimport should take multiple wsdls as input & resolve scheam
      elements to have single merged ObjectFactory class or there should be an option
      to merge ObjectFactory class while generating code for new WSDL with same package.

      Although alternatives has been suggested here
      https://jax-ws.dev.java.net/guide/Compiling_multiple_WSDLs_that_share_the_common_schema.html

      I guess it will be great if the feature is part of wsimport as most of the real
      SOAP wsdls (Google,Yahoo, eBay...) have multiple wsdl that share common schema
      elements.

        Activity

        Hide
        tonedef added a comment -

        This issue is related to issue JAX_WS-363 (it has quite a few votes as well).

        Show
        tonedef added a comment - This issue is related to issue JAX_WS-363 (it has quite a few votes as well).

          People

          • Assignee:
            Lukas Jungmann
            Reporter:
            sunpmanvi
          • Votes:
            8 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: