4 Replies Latest reply: Jan 10, 2013 2:34 AM by 978067 RSS

    AutoVue server does not support file conversion

    978067
      We've developed the ISDK for viewing the files and it's working fine. As the next step, it's required to use AutoVue Web Services to convert the files to pdf and jpeg formats.

      I've deployed the AutoVueWS.war and VueServlet.war files in our application server and ping method works fine. But the 'Convert' method in web services gives below error.

      javax.xml.ws.soap.SOAPFaultException: convert failed:File conversion not supported. ConvertOption[|Format:PDF|ScaleType:TYPE_SIZE|ScaleFactor:0|Width:800.0|Height:600.0|PageType:RANGE|FromPage:1|ToPage:1|ColorDepth:-1|FileName:c:/output/readme.txt-1357634753084.1.PDF|StepsPerInch:0.0|CameraView:NONE]
           at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
           at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
           at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
           at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
           at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
           at $Proxy32.convert(Unknown Source)
           at autovuewsclient2.AutoVueWSClient2.main(AutoVueWSClient2.java:50)

      The client code is as below.

      VueBeanWS_Service service = new VueBeanWS_Service();

      //create proxy
      VueBeanWS proxy = service.getVueBeanWSPort();

      //call autovue ping Web method
      System.out.print (proxy.ping("Hello from Java") );


      //Call the convert Web method.
      try{
      ConvertOption option = new ConvertOption();

      option.setFormat(Format.PDF);
      option.setPage(1);
      option.setScaleType(ScaleType.TYPE_SIZE);
      option.setHeight(600);
      option.setWidth(800);

      String URI = "http://wordpress.org/extend/plugins/about/readme.txt";

      byte[] file = proxy.convert(URI, option, null, false);
      FileOutputStream fos = new FileOutputStream("c:/temp/output1.pdf");
      fos.write(file);
      fos.close();
      }
      catch(Exception e){
      e.printStackTrace();
      }

      File in the above URI is downloaded to the AutoVue Server properly. But the conversion is failed.

      Please help me to solve this error.