title: Service Endpoint Interface (SEI)
body: <p>I have a basic web service created. Let's say my server class has a variable called "status", and its SEI contain a method "getUpdate" for client to call and get the status? How do I code this out at the client side to call the SEI method "getUpdate"?</p>
  
  <p>What I mean if I use port.Update at the client side but how do I determine which server instance I am referring to?</p>
  
  <p>Thanks in advance.</p>
  
  <p>SEI class:</p>
  
  <pre><code>package com.basic.ws;
  
  import javax.jws.WebService;
  
  @WebService(name = "Server_SEI", targetNamespace = "http://ws.basic.com/")
  public interface Server_SEI {
  
      public int sum(int x, int y);
  
      public String getUpdate();
  }
  </code></pre>
  
  <p>Server class:</p>
  
  <pre><code>package com.basic.ws;
  
  import javax.jws.WebService;
  
  @WebService(targetNamespace = "http://ws.basic.com/", endpointInterface = "com.basic.ws.Server_SEI", portName = "ServerPort", serviceName = "ServerService")
  public class Server implements Server_SEI{
      String status = "OK";
  
      public void setTrafficStatus(String status){
          this.status = status;
      }
      public String getUpdate(){
          return status;
      }
  }
  </code></pre>