Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1919

Operations with void return types not being correctly marked as wrapped in some circumstances.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.0
    • Java-SCA-1.1
    • None
    • None
    • All

    Description

      In some circumstances (which I haven't got to the bottom of) operations of the form:

      public void registerNode(String nodeURI, String nodeURL) throws DomainException;

      The reason this is happening is that the test for wrapperedness in WSOperationIntrospectionImpl

      wrapperStyle =
      (operation.getInput().getMessage().getParts().values().size() == 0 || wrapper.getInputChildElements() != null) && (operation
      .getOutput() == null || wrapper.getOutputChildElements() != null);

      Returns false because operation.getOutput() is non null but there are no parts in the operation. Looking at this test it is not as symterical as you would expect however it is still the case that operation.getOutput() return null so the test would have to be changed to something like:

      wrapperStyle =
      (operation.getInput() == null || operation.getInput().getMessage().getParts().size() == 0 || wrapper.getInputChildElements() != null) &&
      (operation.getOutput() == null || operation.getOutput().getMessage().getParts().size() == 0 || wrapper.getOutputChildElements() != null);

      Which looks right given the JAX-WS rules, solves my problem and gives a clean build.

      Attachments

        Activity

          People

            simonslaws Simon Laws
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: