on 08-03-2005 2:56 PM
Hello,
We use XI message mappings to transform xml messages from 1 format to another. Now the xml that we receive from our trade partner has a reference tot a DTD. Eg.
<!DOCTYPE cXML SYSTEM "cXML_NO_ATTR.dtd">
Now when use eg. the mapping test tool, then we get an error that he doesn't find the DTD.
java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.io.FileNotFoundException: C:\usr\sap\X01\DVEBMGS01\j2ee\cluster\server0\cXML_NO_ATTR.dtd (The system cannot find the file specified)
For the moment we copied the DTD to the above mentionned path and now it seems to work.
But does someone now how we can turn off this validation?
(Or specify which DTD ourselves?)
Greetings,
Bart
Hi Bart,
You can try removing the tag <!DOCTYPE cXML SYSTEM "cXML_NO_ATTR.dtd">
using a Java class, which will be at #1 in the sequence of your mappings. Then comes your message mapping
This way you can manipulate the msg.
Check my msgs (& other msgs) in this link
/message/549856#549856 [original link is broken]
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishnu,
Thx for your answer.
I also thought of this. Or maybe using an XSLT.
But it would be nice if there was a parameter to determine this validation. Or maybe a parameter to specify where the dtd/xsd is against which to verify, independend of the doctype or schema in the xml itself.
Greetings,
Bart
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
Hi Bart,
when there is an option to remove, we can also specify what is needed. so probably you can build your own tag
The link which I provided talks about the same.
we often use this removal & addition of tags.
Also, if you use XSLT (i remember) a similar problem is there.
I am not very sure of a variable, but probably you can check this idea in XSLT mapping. (or even Java but not surely in Msg mapping)
Regards
Vishnu
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.