Diff. between @WebService(name=... and @WebService(endpointInterface=... ?
In several tutorials I found different ways of defining a WebService with
annotated Java classes. In some samples web services are annotated like:
while others declare them as:
@WebService(name = "bbb", targetNamespace = "http://......")
What is the difference?
Are these declarations Framework specific (Axis vs. JAX-WS) ?
Or are these declarations valid for ALL kind of web services?
The @WebService annotation is defined by the JAX-WS specifications, so its usage is not framework specific.
The above mentioned ways of declaring a ws endpoint simply differ in providing or not an endpoint interface (which of course can have further annotations).