Oracle 10g Web Services: checking in as HTML, retrieving as PDF...

Hi all. I'm looking for a little help on how to achieve HTML to PDF conversion when either checking in or retrieving a document using the Java 10g WSDL web services interfaces. I was hoping there'd be a way to configure the Content Server to automatically produce a PDF rendition of the incoming HTML at check-in time so that it can be queried via the 'Web' rendition later. However, it seems the server regards the HTML as already a 'Web' rendition and so won't produce a PDF version.
Here's my check-in code:
          String checkInFileName = ...; // file name for check in
          String contentID = ...; // content ID for check in
          byte[] content = ...; // HTML content as a byte array
          IdcFile primaryFile = new IdcFile();
          primaryFile.setFileContent(content);
          primaryFile.setFileName(checkInFileName);
          CheckIn ci = new CheckIn();
          CheckInSoap ciSoap = ci.getCheckInSoap();
          CheckInUniversalResult ret = ciSoap.checkInUniversal(contentID,
                    "My HTML Doc",
                    "Document",
                    "Andy",
                    "Public",
                    null,
                    primaryFile,
                    null,
                    null);
          System.out.println("Returned status: " + ret.getStatusInfo().getStatusMessage());
...and the check-in works fine. It would be nice to be able to programmatically request the Content Server convert the HTML to PDF as part of the check-in code. If that's not possible, then just a way to configure the Content Server to provide a PDF rendition when HTML documents are checked in.
Any help or hints appreciated!

Do you have IBR (inbound refinery) setup?
If so, to turn on conversion for HTML files, go into Configuration Manager - Options -> File Formats and send HTML files to IBR.
Jonathan
http://jonathanhult.com

Similar Messages

  • Oracle 10g Web Services: where's Folio.wsdl ?

    Hi. We're using the 10g com.stellent SOAP web services API onto the Oracle Content Manager. We have deployed the following services successfully: CheckIn.wsdl, GetFile.wsdl, Search.wsdl, DocInfo.wsdl, MetaData.wsdl, Subscription.wsdl, PortalInfo.wsdl, Workflow.wsdl. However there's doesn't seem to be an available WSDL that maps onto the Folio services (eg CREATE_FOLIO_RENDITION, CHECKIN_NEW_FOLIO, UPDATE_FOLIO etc).
    Does anyone know if this is supported ? Or is it mandatory to use either RIDC or the 11g GenericSoapService when trying to create / edit etc Folios ?
    Any help greatly appreciated!

    Hi ,
    Folio services can be created as WSDL or RIDC depending on your requirement , the ones which are available by default only cater to the basic set of Content actions from UCM .
    To get idea on how to create new WSDL's check the following article on MoS portal :
    Doc ID 1464678.1 - How to Create a New WSDL from the Webcenter Content UI Using WSDL Generator
    Thanks,
    Srinath
    Edited by: Srinath Menon on Feb 7, 2013 8:08 AM

  • Oracle 10g Web Services

    Hi
    Can anybody point me to where i can get information/tutorials on creating web services with oracle 10g.
    Marco

    Hi Marco,
    Take a look on this links:
    - http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    - http://www.oracle.com/technology/sample_code/tutorials/fbs/ws/toc.htm
    - http://www.soaprpc.com/tutorials.html
    - http://www.skillbuilders.com/Tutorials-V2/SkillBuilders%20Oracle%20Tutorials.cfm
    Regards,
    Francisco Munoz Alvarez
    www.oraclenz.com

  • Oracle 9i Web Services Quickstart Install TCP tunneling problem

    When I try to run the OTNGUIDGenerator example using the TCP Tunneling portion of the Oracle 9i Web Services Quickstart
    Install I get this in the From localhost8900 tunnel window:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <ns1:getGUID xmlns:ns1="oracle.otn.ws.emarket.OTNGUIDGenerator" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </ns1:getGUID>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I get this in the From 127.0.0.1:8888 window:
    HTTP/1.1 404 Not Found
    Date: Mon, 28 Oct 2002 20:38:06 GMT
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Content-Length: 171
    Connection: Close
    Content-Type: text/html
    <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /j2ee-web/oracle.otn.ws.emarket.OTNGUIDGenerator not found on this server</BODY></HTML>
    This is my webservices stub
    public class OTNGUIDGeneratorStub
    /** public String endpoint = "http://otn.oracle.com/ws/oracle.otn.ws.emarket.OTNGUIDGenerator"; */
    public String endpoint = "http://127.0.0.1:8900/j2ee-web/oracle.otn.ws.emarket.OTNGUIDGenerator";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    public OTNGUIDGeneratorStub()
    System.setProperty("oracle.soap.transport.noHTTPClient", "true");
    m_httpConnection = new OracleSOAPHTTPConnection();
    Properties props = new Properties();
    /** props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
    props.put(OracleSOAPHTTPConnection.PROXY_HOST, "proxy.scott.af.mil");
    props.put(OracleSOAPHTTPConnection.PROXY_PORT, "375");
    props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "fowlerji");
    props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "F1234567*g"); */
    m_httpConnection.setProperties(props);
    Not sure what to call the server - this works okay when I'm not using tunneling and using our proxy server??

    I think your problem is that you have a proxy user/password and the TCP Monitor (both the command line and built-in 9.0.3 version) do not support that - they only support specification of the proxy server itself :-(
    It is a feature request that I hope will make it into the late spring/early summer release of JDeveloper - I wrote it up as a request based on the number of folks who faced this issue with these tutorials.
    Mike.

  • Oracle Spatial Web Services in ADF application

    Hi,
    I want to use Oracle Spatial Web Services in an ADF application (JDeveloper 11.1.2) to retrieve Longitude/Latitude after inserting/upating an address record.
    Is there any sample app or documentation on how to do this?
    Thank you,
    Monica

    I never did solve the problem. I decided to try out GeoServer for WFS and am very impressed. It was much easier to install and pretty feature-filled as well with a lot of documentation. I would definitely suggest checking it out to see if it will fit your needs.

  • Oracle BI Web Services to extract Presentation Variables

    Hi Folks,
    I have a complex requirement and was unable to find the right solution on web.
    My general question is,
    What is the C# code which uses Oracle BI Web Services to extract Presentation Variables information and write it to XML files?
    We are unable to extract for Presentation Variables with Variable Value but able to extract for Column Value.
    So please share your thoughts as how to extract the presentation variables.
    Thanks,
    Oj

    Oj,
    Check this
    O.B.I.E.E: Obiee Web Services &amp;#8211; Using .net and C#
    http://msdn.microsoft.com/en-us/library/windows/desktop/gg537745(v=vs.85).aspx
    Try this and let us know the outcome.
    Thanks,

  • WS-I fails with Oracle Generated Web Service

    Hi
    I recently used WS-I Analyzer to analyze the HTTP Analyzer logs. I get the following error:
    SSBP1003
    The Content-Type header is not present.
    Element Location:
    lineNumber=19
    SSBP5101
    The message either (1) did not have a "Content-Type" HTTP header field, or (2) the "Content-Type" HTTP header field had a field-value whose media type was something other than "text/xml"
    Element Location:
    lineNumber=19
    Any ideas?

    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
    function get_employees (p_department_id in number) return clob
    as
    begin
      return 'your_xml_string_here';
    end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
    - Morten
    http://ora-00001.blogspot.com

  • How to return multiple record with Oracle Native Web Service?

    Dear all,
    I would like to know that the oracle native web service can be able to return multiple records to client or not?
    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
    Thank and Regards,
    Zenoni

    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
    function get_employees (p_department_id in number) return clob
    as
    begin
      return 'your_xml_string_here';
    end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
    - Morten
    http://ora-00001.blogspot.com

  • Oracle Calendar Web services toolkit download

    Where can I download Oracle Calendar Web Services Toolkit ?

    OK, I found it under the OCS sindows client v9 download.

  • IOException from EP web service checker

    Hi  ,
    I have created a web service from a portal service and deployed to my portal, when I try to access via EP web services checker by url:
    http://server:50100/irj/servlet/prt/soap/com.sap.portal.prt.soap.TestService
    I got the java.io.IOException:http://server:50100/irj/servlet/prt/soap/com.sap.portal.prt.soap.TestService
    in the panel "WSDL Descriptor".
    Does any body have a idea how to fix this issue?
    Thanks,
    narendra

    hi
    Thanx for ur reply.
    i checked but it is not useful for my problem.
    I got a Exception in EP Web Services Checker like this:
    java.io.IOException:Server returned HTTP response code:503 for url:http://server:50100/irj/servlet/prt/soap/com.sap.portal.prt.soap.TestWebService

  • Doc for 10g Web Services for EJBs

    I'm trying to determine if any documentation exists for 10gAS that discusses how to publish a statless session bean as a web service. The only thing I'm found so far is a tutorial called "Expose a Stateless Session EJB as a Web Service Endpoint through JAX-RPC interface", but I've found it lacking in detail and possibly incorrect. For example, it mentions a wsadmin tool that I don't see in the 10gAS release and it discusses how files like mapping.xml and webservices.xml can be created by JDeveloper. However, the 10g JDeveloper I downloaded doesn't see to support this.

    Unfortunately the doc is the how-tos right now. However, there are a couple of pointers - this article by Anirban Chatterjee - http://otn.oracle.com/tech/webservices/htdocs/j2ee14/jsr109.html - describes the configuration behind it.
    The JDeveloper interface is on the cusp of being released - it is just going through QA. I have written a tutorial on what it looks like here:
    http://otn.oracle.com/tech/webservices/htdocs/series/jaxrpc1/index.html
    But this tutorial is not linked publicly yet because it isn't released ... when the extension becomes available this link will be hooked up publicly. Please treat it as a preview right now.
    Could you describe the errors that you are encountering. There are a number of bugs that we have been collecting with the preview and we hope to do a refresh soon. It would be good to know if yours is a known one or not.
    Mike.

  • Struts example 10g web services

    Hi,
    I'm new to Struts so I followed exactly the example on OTN: http://otn.oracle.com/products/jdev/viewlets/905p_adf_webservices/adfwebservices_10g_viewlet_swf.html
    But, when I run the first page in JDEV 10g Preview, and I use the submit button, I get the following Error:
    * JBO-29000: Unexpected exception caught: java.lang.reflect.InvocationTargetException, msg=null
    * null
    Any idea?
    Thanks.

    Hi Eugene,
    The viewlet does not specifically show it - but you need to run the web service in embedded mode too. Also, be sure that when you generate the web service you set the port number to be 8988 (the embedded server port)
    Hope this helps
    rgds
    Susan
    JDeveloper PM Team

  • Oracle Database Web Service Client using UTL_DBWS :: ORA-29532 Error

    Hi,
    I have the Oracle Database 10.2.0.1.0 :-
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - ProductionI have written a simple Web Services Client using the classes gfrom the UTL_DBWS package. I loaded the JAR file dbwsclient.jar in the SYS Schema and I am trying to use it in the USF Schema.
    However, I have hit this error & I ma unable to proceed :-
    SQL>  select get_stock_price from dual;
    select get_stock_price from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IllegalAccessException: javax.xml.rpc.ServiceException:
    java.security.AccessControlException: the Permission
    (java.lang.RuntimePermission getClassLoader) has not been granted to USF. The
    PL/SQL to grant this is dbms_java.grant_permission( 'USF',
    'SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    ORA-06512: at "USF.UTL_DBWS", line 193
    ORA-06512: at "USF.UTL_DBWS", line 190
    ORA-06512: at "USF.GET_STOCK_PRICE", line 17Can you please help me with this ?
    Regards,
    Sandeep

    Hi,
    The error message said
    the Permission(java.lang.RuntimePermission getClassLoader) has not been granted to USF.
    I'd follow the suggestion
    The PL/SQL to grant this is dbms_java.grant_permission( 'USF','SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    In case you have not done so, consult the Callout Users Guide @
    http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    Kuassi http://db360.blogspot.com

  • Error while running 10g web services tutorial

    I am trying to learn and evaluate JDev 10g. I followed the web services tutorial for 10g. In the end when I tried to run the example I get the following error. Any help will be appreciated. Thanks.
    PS: I am also seeing this error in the message pane for the embedded server "Source Files\JDeveloper\j2ee\home\oc4j.jar;C:\Program does not exist."
    C:\Program Files\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\JavaWebService\Model\classes;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\soap\lib\soap.jar;C:\Program Files\JDeveloper\lib\xmlparserv2.jar;C:\Program Files\JDeveloper\jlib\javax-ssl-1_2.jar;C:\Program Files\JDeveloper\jlib\jssl-1_2.jar;C:\Program Files\JDeveloper\j2ee\home\lib\activation.jar;C:\Program Files\JDeveloper\j2ee\home\lib\mail.jar;C:\Program Files\JDeveloper\j2ee\home\lib\http_client.jar webservtest.EmbeddedMyPersonWSStub
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;Servlet error: Cannot generate Class: &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at webservtest.EmbeddedMyPersonWSStub.sayHello(EmbeddedMyPersonWSStub.java:175) at webservtest.EmbeddedMyPersonWSStub.main(EmbeddedMyPersonWSStub.java:40)
    Process exited with exit code 0.

    Hi,
    Unfortunately, your web service is failing at runtime because JDeveloper (and more specifically, the embedded OC4J) is installed in a directory whose path contains a space character. If you move JDeveloper from "Program Files" to another directory, perhaps "Program_Files", then it'll all go smoothly.
    Apologies if this causes you inconvenience.
    Regards,
    Alan.

  • Web service check error

    Hi,
    Is this a bug?
    A web service (C#) runs well, but the System Health Monitor is showing error 500 for it. It looks like a strange space appears in the link on position 27, when the monitor is checking the web service. Any clue?
    error example:
    Portlet request failed, the remote server returned HTTP error '500'. Portlet ID=557, User ID=1, URL='http://xxxxxx.xxxxxxxxxx.edu/xxxxxxxxxxxxx/portlet/xxxy zxxxxxFirstForm.aspx'
    (the space appears between y xnd x in several cases-I've checked the webservice and no space is there. I've rewrite the webservice link, without success)

    Have you tried the try catch block ?
    See the error codes it responds with.
    Then look through the properties of the Exception
    try
        doInit();
    } catch(err)
        var vDebug = "";
        for (var prop in err)
           vDebug += "property: "+ prop+ " value: ["+ err[prop]+ "]\n";
        vDebug += "toString(): " + " value: [" + err.toString() + "]";
        status.rawValue = vDebug;
    function doInit()
        doWebServiceCallThatFails();
    Have fun with these articles
    http://blogs.adobe.com/formfeed/2009/06/collected_form_development_and.html
    http://blogs.adobe.com/formfeed/2009/03/handling_javascript_exceptions.html

Maybe you are looking for