title: Can a web service call another web service in the same application server
body: <p>I'm using Netbeans 6.5 to generate the JAX-WS Metro service and Glassfish 2.1 as the application server.</p>
  
  <p>Assume I have two web services e.g.</p>
  
  <p>...</p>
  
  <pre><code>@WebMethod(operationName = "doXXX")
  public String doXXX(
  @WebParam(name = "id") String id
  ...    
  
  ...
  @WebMethod(operationName = "doYYY")
  public String doYYY(
  @WebParam(name = "result") String result
  ... 
  </code></pre>
  
  <p>and I have a Web Service client (a Java application) that happily calls both.</p>
  
  <p>I now want method XXX to call method YYY i.e. I need to place the client proxy for YYY inside of web service XXX.</p>
  
  <p>How do I do this?</p>