cancel
Showing results for 
Search instead for 
Did you mean: 

remove DOCTYPE or How to use Note 812966 with URL

Former Member
0 Kudos

Hello Experts,

I saw some Threats to my question, but I refused with the given solution.

I get a message like this to my Outbound Interface:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE PreisBestandsanfrage SYSTEM "http://www.shk-branchenportal.de/shop/dtd/PreisBestandsanfrage.dtd">

<PreisBestandsanfrage>

<Message id="0000000002522" sender="3210" receiver="78" passwd=""/>

<Artikeldaten>

<kndnr>34562</kndnr>

<artnr>4567890</artnr>

<menge>1</menge>

<mengeneinheit>PCE</mengeneinheit>

</Artikeldaten>

</PreisBestandsanfrage>

The mapping failed, because the DTD can't be found. I tried to implement the Java mapping from the SAP Note 812966, but all tries failed. The program can't find the DTD in the archives.

Can anyone help me how the archive with the DTD is to build, that the ExcampleProgram from Note 812966 finds it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can remove the DOCTYPE declaration in your XML using XSLT mapping as step in your interface mapping - if removal is an option.

Regards,

Kai

Former Member
0 Kudos

It is an option to remove the DOCTYPE tag.

Can you give me an excample code to do this?

Former Member
0 Kudos

Tutorials for XSLT mappings are available here:

http://www.w3schools.com/xsl/

http://www.w3.org/TR/xslt

Code example: http://wiki.tei-c.org/index.php/Remove-Namespaces.xsl

Hope this helps to move on!

Regards,

Kai

Former Member
0 Kudos

Thank you. I try this solution.

Answers (0)