Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://jcp.org/aboutJava/communityprocess/final/jsr224/index.html" rel="noreferrer">The JAX-WS Specification</a> makes this cleas in section 3.3, page 30:</p> <p>You can use the <code>endpointInterface</code> attribute to separate between the implementing class and the interface. Basically, this determines what will be mapped to your <code>wsdl:portType</code> when you deploy the service and the <code>wsdl:definition</code> is generated.</p> <p>If you <em>do not</em> define the <code>endpointInterface</code> all public methods of the annotated class will be mapped to <code>wsdl:operation</code> (as long as you do not influence this behaviour with <code>@WebMethod</code> annotations). </p> <p>If you <em>do</em> define the <code>endpointInterface</code>, it has to point to some type which the annotated class implements (or, well, itself as demonstrated in your question). Then, the public methods of this type are used for mapping the <code>wsdl:portType</code>, instead of the methods of the annotated class.</p> <p>To sum up: The definition of <code>endpointInterface</code> only makes sense if you use the <code>@WebService</code> on an implementing class and want your WSDL to be generated based on the interface it implements. In your current setting where you use the annotation on the interface <code>com.ws.HelloWorldIfc</code>, there really isn't any difference. So you lose nothing by just skipping it. The annotation is useful if you want your implementation class to provide public methods that should not go into the generated WSDL. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload