All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
We have a Web Service that requires Addressing headers to be present in all requests.
@Addressing(required=true)
@WebService
public class MathTableImpl implements MathTableService {
@Override
public SimpleMathTable getTable(Integer number) throws NegativeNumberException {
if (number < 0) {
throw new NegativeNumberException("Number cannot be negative");
}
SimpleMathTable table = new SimpleMathTable(number);
return table;
}
}
The Web Service is injected in a client. What is the correct code to enable Addressing?