webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  encoding of

    Posted Tue April 23, 2002 09:33 PM

    Hello,

    I have some problems with documents containing , because tamino encodes the content. For example, I want to insert the following code:

    <![CDATA[

    hello

    ]]>

    After uploading the document, the xsl:result contains:

    <![CDATA[

    hello

    ]]>


    But this is not the same - and I need the original code.
    Has anybody some ideas?

    Thanx for help :slight_smile:

    Marko


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: encoding of

    Posted Wed April 24, 2002 10:32 AM

    To narrow this down we need the following information.

    1)Which version of Tamino do you have?
    2)How are you uploading the information?
    TII, JavaLoader, API?

    I just tried your data - loading it to a Tamino 3.1.1.4 using Jscript (same technique as TII)
    but didn’t get the problem


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: encoding of

    Posted Wed April 24, 2002 12:27 PM

    Hi Marko,

    which Tamino version do you use? In my 3.1.1.4,


    #Tamino
    #API-Management
    #webMethods


  • 4.  RE: encoding of

    Posted Wed April 24, 2002 12:28 PM

    Hi Marko, which Tamino version do you use?
    In my 3.1.1.4, CDATA is not encoded


    #Tamino
    #webMethods
    #API-Management


  • 5.  RE: encoding of

    Posted Wed April 24, 2002 01:15 PM

    Hello,

    We use Tamino 3.1.1.3 and Suse Linux 7.3 as Server. For the Upload we use the JavaAPI (TaminoAPI4J.jar) and sourcecode like the following:

    TXMLObjectAccessor xoa =
    connection.newXMLObjectAccessor(
    TAccessLocation.newInstance(“myCollection”),
    TDOMObjectModel.getInstance());
    TXMLObject insertFile = TXMLObject.newInstance(new File(“file.xml”));
    TResponse response = xoa.insert(insertFile);

    Now as you mention it, I tried the InteractiveInterface - fine, no such problem. But with the JavaAPI it doesn’t work.
    Maybe a problem with JDOM?

    greetings,

    Marko


    #API-Management
    #Tamino
    #webMethods


  • 6.  RE: encoding of

    Posted Mon April 29, 2002 03:28 PM

    Hello,

    if anyone is still interested in this problem: it is solved (thanx to Manfred Kluckner, Software AG
    Customer Support Center).
    It seems that there is a problem with the DOM or TDOMObjectModel. The TJDOMObjectModel works.
    So we changed our sourcecode to the following:

    TXMLObjectAccessor xoa =
    connection.newXMLObjectAccessor(
    TAccessLocation.newInstance(“myCollection”),
    TJDOMObjectModel.getInstance());
    SAXBuilder saxBuilder = new SAXBuilder();
    org.jdom.Document in = saxBuilder.build(new File(“file.xml”));
    TXMLObject insertFile = TXMLObject.newInstance(in);
    TResponse response = xoa.insert(insertFile);

    Greetings,

    Marko


    #webMethods
    #API-Management
    #Tamino