Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.0
-
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.