Good day, I'm working on Soap Web Service to call from my Web Service an other Web Service. But I have little problem, my inserted certificate is empty. I'm using latest NetBeans and Tomcat. Here is my little code, please help me with this:

Java Code:
 * To change this template, choose Tools | Templates 
 * and open the template in the editor. 
package niis.janis; 

import java.util.logging.Level; 
import java.util.logging.Logger; 
import javax.servlet.ServletException; 
import javax.servlet.ServletInputStream; 
import javax.servlet.http.HttpServletRequest; 
import javax.servlet.http.HttpServletResponse; 
import niis.wsclient.GetInfoBlock.CadastreInformationBlockRequestStructure; 
import niis.wsclient.GetInfoBlock.CadastreInformationBlockResponseStructure; 
import niis.wsclient.GetInfoBlock.GetInfoBlock; 

 * @author Owner 

public class testWS extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    static final long serialVersionUID = 1L; 
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 
        CadastreInformationBlockRequestStructure req = new CadastreInformationBlockRequestStructure(); 
        req.username = "janis"; 
        req.password = "wtfn00b"; 

        InputStream is = null; 
        X509Certificate cert = null; 
        FileInputStream fos = null; 
        int ch; 
        StringBuilder strContent = new StringBuilder(""); 
        try { 
            File certificate = new File("C:/Users/Owner/Desktop/"); 

            fos = new FileInputStream(certificate); 
            while((ch = != -1){ 
            is = new ByteArrayInputStream(strContent.toString().getBytes()); 
            cert = X509Certificate.getInstance(is); // is 'cert' is null 
        } catch (Exception ex) { 
            Logger.getLogger(testWS.class.getName()).log(Level.SEVERE, null, ex); 
        } finally { 
            if (fos != null) {fos.close();} 
            if (is != null) {is.close();} 

        CadastreInformationBlockResponseStructure response2 = null; 
        try { 
            GetInfoBlock proxy = new GetInfoBlock(); 
            response2 = proxy.CadastreInformationBlocks(req); 
        } catch (Exception ex){ 
            Logger.getLogger(testWS.class.getName()).log(Level.SEVERE, null, ex); 

        //response.getWriter().write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><document xmlns:xsi=\"\" xmlns:xs=\"\" xsi:type=\"xs:String\">"+ response2.getCadastreInformationData() +"</document>"); 

    protected void doPost(HttpServletRequest request, CadastreInformationBlockResponseStructure response) throws ServletException, IOException { 
            ServletInputStream inStream = request.getInputStream(); 
            String xml_doc="<?xml version=\"1.0\" encoding=\"UTF-8\" ?><document xmlns:xsi=\"\" xmlns:xs=\"\" xsi:type=\"xs:base64Binary\" content-type=\"application/xls\">Jānis Pekša</document>"; 
Best regards,