title: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled
body: <p>I am facing problems in invoking a method present in a web service. The wsdl was created using AXIS.</p>
  
  <p>When I try to invoke it using my java code, I am getting null values from the service response.</p>
  
  <p>I am getting the warning message getting printed in my console:</p>
  
  <blockquote>
    <p>Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.</p>
  </blockquote>
  
  <p>While trying to solve this, I added activation.jar and mail.jar in my workspace build path, restarted the server. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Right Click on the WSDL ==> Generate CLient</p>
  
  <p>Then I got a proxy class, using it I wrote this to invoke the service method:</p>
  
  <pre><code>public class CallingWebService1 {
  
  public static void main(String[] args) throws Exception {
  
      WebService1Proxy proxy1 = new WebService1Proxy();
      proxy1.setEndpoint("http://localhost:8045/WebService1/services/WebService1");
  
      EmployeeDetails details = proxy1.getDetails();
      System.out.println("Employee Id: " + details.getEmpId());
      System.out.println("Employee Name: " + details.getEmpName());
      System.out.println("Dept Id: " + details.getDeptId());
      System.out.println("Dept Name" + details.getDeptName());
      System.out.println("Age: " + details.getAge());
  }
  </code></pre>
  
  <p>But still the problem persists :(</p>
  
  <p><strong>Further Info:</strong></p>
  
  <p>The getDetails() method is performing a DB operation fetching some records from the Oracle DB. For performing the DB operation, class12.jar is used. Does it have something to do with invoking the service method the way I am doing?</p>