Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

EJBCA Message: Premature end of file.

atinza
2013-12-05
2013-12-12
  • atinza
    atinza
    2013-12-05

    Hi all,

    I really need your help. I connect to wsdl using below code and it's work. :

     CertTools.installBCProvider();
     String urlstr = "https://nuri.msctrustgate.com:8443/ejbca/ejbcaws/ejbcaws?wsdl";            
     System.setProperty("javax.net.ssl.keyStore","/opt/nuriAdmin.p12");
     System.setProperty("javax.net.ssl.keyStorePassword","password");
     System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
     QName qname = new QName("http://ws.protocol.core.ejbca.org/", "EjbcaWSService");
     EjbcaWSService service = new EjbcaWSService(new URL(urlstr),qname);
     ejbcaraws = service.getEjbcaWSPort();
    

    However, when i try to perform any process such ass editUser, it keep give me :

    XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]        Message: Premature end of file.
    

    Please help me on this. Im not sure what is wrong. Im cracking my head and search as much info as i can. But none help it. I stuck for almost a week. Please.

    Thanks and Regards,
    Nita

     
  • Does it work using the CLI?

     
    • atinza
      atinza
      2013-12-06

      No havent test using CLI. But i tested using SOAPGui and i get HTTP GET not supported error. help me please. What should i add/do

       
  • atinza
    atinza
    2013-12-09

    Please anyone?

     
  • I recommend that you do test the WS CLI.

     
  • atinza
    atinza
    2013-12-12

    yes...it work find...no issue at all...i mistakely miss out configuration for wsdl in jboss 5...thank you so much..