cancel
Showing results for 
Search instead for 
Did you mean: 

Adding and Removing DTD reference in adapter module

Former Member
0 Kudos
156

I am trying to strip dtd reference (doctype) from an xml documents on its way into XI and add the dtd reference to an xml message on its way out of XI.

I would like to do this with module development. We are using SOAP adapter with no soap envelope for these interfaces.

I dont know java at all.

Does anyone have the actual java code to do this?

Your help will be greatly appreciate and ofcourse rewarded with points.

Regards

Haseeb

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Check the below note. This has the java code to delete the DTD.

SAP note for this 812966.

Let me know if you cannot download the code from the note

Regards,

Former Member
0 Kudos

SriHari,

Thanks for your reply.

The SAP note addresses the issue with resolving DTD reference during mapping.

In our case, we want to strip the DTD reference. This will avoid XI to go out and load the dtd from an external site. We beleive this is a performance issue for the volume of messages we will be dealing with.

In my case, I need java code that I can implement in the adapter module delete the DTD reference.

Regards

Haseeb

Former Member
0 Kudos

Hello Haseeb,

Whats wrong in using the same java code from the note in your adapter module with necessary changes.

Regards,

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

HI,

Why you cannot use XSD Schemas? , they are more easy with editors like xmlspy.

Regards.

Former Member
0 Kudos

Hi,

We are working with an external party that uses DTD. We dont have control over that.

Regards

Haseeb