private/protected methods are considered during endpoint validation
--------------------------------------------------------------------
Key: AXIS2-4062
URL: https://issues.apache.org/jira/browse/AXIS2-4062
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: jaxws
Affects Versions: nightly
Reporter: Jarek Gawor
Here's the exception I got when I tried to deploy a web service without SEI
with 3 public and 2 private methods:
javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due
to the following errors -- Validation Phase 2 failure: :: Endpoint failed
validation :: :: Invalid Endpoint Interface :: :: The number of operations in
the WSDL portType does not match the number of methods in the SEI or Web
service impl
ementation class. wsdl operations = [divide add multiply ] dispatch
operations= [myInit divide add myDestroy multiply ]
Here's the basic service class:
@WebService()
public class CalculatorImpl {
public int divide(int n1, int n2) {
return n1/n2;
}
public int add(int n1, int n2) {
return n1 + n2;
}
public int multiply(int n1, int n2) {
return n1 * n2;
}
@PostConstruct
private void myInit() {
System.out.println(this + " PostConstruct");
}
@PreDestroy()
private void myDestroy() {
System.out.println(this + " PreDestroy");
}
}
The wsdl for this service defined operation for the divide, add, and multiply
operations.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]