You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2008/10/02 23:41:44 UTC
[jira] Created: (AXIS2-4062) private/protected methods are
considered during endpoint validation
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-4062) private/protected methods are
considered during endpoint validation
Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Gawor resolved AXIS2-4062.
--------------------------------
Resolution: Fixed
Fix Version/s: nightly
Assignee: Jarek Gawor
Modified JavaMethodsToMDCConverter.convertMethods() to ignore private/protected methods. Changes committed fixes to trunk (revision 701265).
> 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
> Assignee: Jarek Gawor
> Fix For: nightly
>
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org