title: How can I add TokenPassport into the Header Section in the NetSuite(2020) in JAVA
body: <p>I extract the Java files using 'wsimport' from <a href="https://webservices.netsuite.com/wsdl/v2020_2_0/netsuite.wsdl" rel="nofollow noreferrer">https://webservices.netsuite.com/wsdl/v2020_2_0/netsuite.wsdl</a> , but I can't able to  bind TokenPassport and others into the Header section.
  I create the <strong>port</strong> object from the NetSuiteService</p>
  <pre><code>import org.apache.axis.client.Stub;
  import org.apache.axis.message.SOAPHeaderElement;
  
  import com.netsuite.webservices.platform.core_2020_2.GetAllRecord;
  import com.netsuite.webservices.platform.core_2020_2.TokenPassport;
  import com.netsuite.webservices.platform.core_2020_2.types.GetAllRecordType;
  import com.netsuite.webservices.platform_2020_2.NetSuitePortType;
  import com.netsuite.webservices.platform_2020_2.NetSuiteService;
  
   NetSuiteService netSuiteService = new NetSuiteService();           
   NetSuitePortType port= netSuiteService.getNetSuitePort();
  </code></pre>
  <p>'''
  Then create TokenPassport and try to bind SOAPHeaderElement to the port using <strong>axis</strong> <strong>Stub</strong>; but unfortunately got an exception like class cast exception.</p>
  <pre><code>TokenPassport passport = TokenUtil.getPassport();
  String namespace = &quot;urn:messages_2020_2.platform.webservices.netsuite.com&quot;;
  SOAPHeaderElement tokenPassportHeader = new SOAPHeaderElement(namespace,&quot;tokenPassport&quot;,passport);
  ((Stub)port).setHeader(tokenPassportHeader);    
  </code></pre>
  <p>java.lang.ClassCastException: com.sun.proxy.$Proxy37 cannot be cast to org.apache.axis.client.Stub</p>
  <p>How can i Bind TokenPassport into the Header.?</p>