title: Calling Java from a Java console app and an ASP.NET app
body: <p>Recently I got asked to write a java application for my company. I'm a seasoned .Net developer so this is all new ground to me.</p>
  
  <p>My task is to produce an invoicing application that has several high level tasks such as:</p>
  
  <ul>
  <li>Build single invoice</li>
  <li>Build all invoices</li>
  </ul>
  
  <p>My company want to be able to call these tasks from a java console application - passing in relevant commands and parameters to invoke the tasks. They also want to be able to invoke the same code from an ASP.NET application.</p>
  
  <p>Therefore my first thought was to use Web Services in Java.</p>
  
  <p>My question is: Can I use Web Services in Java from both a Java Console Application and from an ASP.NET application? Or perhaps are there better alternatives.</p>
  
  <p>Any pointers to get me researching in the right direction would be appreciated.</p>
  
  <p>Thanks.</p>