on 08-13-2007 7:13 PM
I am using XI to integrate with a system that uses established XML document specifications. As part of these specs, it is required that the XML documents have a doctype specified and point to the correct .dtd file, but apparently XI doesn't support doctypes. I was able to use the Java mapping code I found in an SAP note to get XI to load the DTD for incoming messages and strip out the doctype, but I'm having trouble figuring out how to write a Java mapping that places a doctype definition on outgoing messages.
Has anyone done this in the past? If so, how?
Hi,
I tried the same but mine was using an XSD .
Place the corresponding XSD in the /usr/sap/<SID>/DVEB<>/j2ee/cluster/server0 folder on the XI server.
See if it works for you.
Also , I dont remember exactly , but there is a dtd folder on server where i guess you can place the dtd file there also and give it a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not clear...can you please elaborate more.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The incoming message looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE GET_HOSTPING_001 SYSTEM "get_hostping_001.dtd">
<GET_HOSTPING_001>
.....
</GET_HOSTPING_001>
Originally, XI complained that it couldn't find the dtd file and failed to process the message. By following the instructions in note 812966, I was able to implement a Java mapping that loads the dtd and removes the doctype definition. This allows XI to successfully process the message.
My problem is that I need the outgoing message to contain a doctype and dtd reference as well. How do I do this?
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.