Skip to Content
avatar image
Former Member

external definition -- Add the Doctype

Hi,

My Scenario is JDBC to FILE.

for the target a dtd is provided to me by the client, I created a external defination with the dtd file(option used from the first element)

A file is being created with out the DOCTYPE, but the client needs the DOCTYPE statement in the xml file that is created like

<!DOCTYPE Transaction (View Source for full doctype...)>

How can i solve this, Please suggest.

Srinivas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 22, 2009 at 06:31 PM

    Have a look at the below thread, same type of issue was resolved using an XSLT mapping :

    Generate !DOCTYPE in outbound http

    DOCTYPE and xslt mapping

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2009 at 06:23 PM

    Hi Srinivas,

    There is no way, u can load the dtd first and then customize it in XI.

    You have to modify the dtd externally, add DOCTYPE in it and then load it in XI in external definition.

    Regards,

    Supriya.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Supriya,

      Modified the dtd externally and loaded it again, but still DOCTYPE is not appreaing in the xml file that got created by receiver fileadapter.any thing to be done on the receiver file communication channel(file).

      Please suggest.

      Thanks

      Srinivas

  • avatar image
    Former Member
    Oct 22, 2009 at 07:30 PM

    Hi,

    After loading dtd in XI after modification, is your DOCTYPE appear in your message staructure?

    You can check this by creating a dummy message mapping and importing this dtd in it, just to check whether required message structure is getting created or not.

    If this is fine, then there has to be FCC configuration error.

    If possible, can you give your target File structure here?

    Regards,

    Supriya.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2009 at 04:23 PM

    Solved myself, written a unix command in the post processing steps in the receiver file adpater

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Colin

      I tried to add the Doctype with a XSLT script but I catch the following error:

      com.sap.aii.utilxi.misc.api.BaseRuntimeException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.ConnectException: Connection timed out at com.sap.aii.mappingtool.tf3.Transformer.checkParserException

      Do you have any idea?

      Thx

      manuku