Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Removing/Switch off the DTD reference in iWay 5.5
Go
New
Search
Notify
Tools
Reply
  
Removing/Switch off the DTD reference in iWay 5.5
 Login/Join
 
Member
posted
Hi,

I am running a p- flow inside a channel,which takes a xml file with a DTD reference in it .

This DTD reference is causing the problem.

The iWay components like transforms are failing to parse the XML file and is giving the error as
Unexpected exception: XD[FAIL] cause: 2 subcause: 0 message: IO exception while parsing document java.net.UnknownHostException: xml.cxml.org.
The xml file has a DTD reference in it and contains this xml.cxml.org.
As of now i have removed the dtd reference manually and have built a transform.
But when I deploy all the components in a channel and when listener(File listener and accepts flat files) picks up message, the same error is still thrown when the message enters the transform object.
Even after accepting the file as flat and if i try to remove the DTD with a service object(XDConstantAgent) with a _flatof() function to is not working and still results in the same error.
Even having a XLST file to remove the DTD reference is too not working, as the XLST still try to parse the file first before accepting.

Is there any way to remove/switch off the DTD from the file?
Please help..


iWay ISM 5.5/iWay ISM 6.0 on Windows.
 
Posts: 20 | Registered: April 11, 2011Reply With QuoteReport This Post
Member
posted Hide Post
Hi Gopal,

Have you tried to run the pflow in Run Test Tool inside Designer or iIT? Did it work?
Could you send us the file with the XML you are using for the tests?

Cheers,

TK


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
 
Posts: 10 | Registered: November 02, 2010Reply With QuoteReport This Post
Member
posted Hide Post
Hi Tommy,

<?xml version="1.0" encoding="ISO-8859-1"?>
< !DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.017/cXML.dtd">
<cXML>
.
.
.
.
</cXML>

The DTD part of the xml,causing the problem.
Also as mentioned earlier, I am using a file listener to accept this XML as a flat file and then apply the functions to remove the DTD reference. What ever function I use, iWay still tries to parse the XML and results in a error.

Is there any way to bypass the XML parsing and remove the DTD content from the original XML.
 
Posts: 20 | Registered: April 11, 2011Reply With QuoteReport This Post
Member
posted Hide Post
quote:
Originally posted by Gopal_mys:
Hi Tommy,

I tried test run in Run Test Tool--inside Designer with no success..
<?xml version="1.0" encoding="ISO-8859-1"?>
< !DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.017/cXML.dtd">
<cXML>
.
.
.
.
</cXML>

The DTD part of the xml,causing the problem.
Also as mentioned earlier, I am using a file listener to accept this XML as a flat file and then apply the functions to remove the DTD reference. What ever function I use, iWay still tries to parse the XML and results in a error.

Is there any way to bypass the XML parsing and remove the DTD content from the original XML.


iWay ISM 5.5/iWay ISM 6.0 on Windows.
 
Posts: 20 | Registered: April 11, 2011Reply With QuoteReport This Post
Member
posted Hide Post
Hi Gopal,

I tried a PFLOW with a similar XML document and maybe the problem is the whitespace at the start of the < !DOCTYPE sentence; try to remove that and test again.

Cheers,


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
 
Posts: 10 | Registered: November 02, 2010Reply With QuoteReport This Post
Member
posted Hide Post
Thanks for the reply Tommy,

Even after removing that white space after "<" in the input is also not working .

That was a typo from myside...

Any other way?


iWay ISM 5.5/iWay ISM 6.0 on Windows.
 
Posts: 20 | Registered: April 11, 2011Reply With QuoteReport This Post
Member
posted Hide Post
YAW Gopal,

OK, I suppose that in the transform you have configured the validation against a DTD in the input or output properties. Could you try to select "None" option and try again? But instead testing inside a channel try the test transform tool.

iWay Transformer --> .gpx --> properties --> input/output --> validation(TAB)

Regards,


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
 
Posts: 10 | Registered: November 02, 2010Reply With QuoteReport This Post
Member
posted Hide Post
Ya Tommy,

First I tested everything in Tranformer tool.

Validation has been selected as none in the my transformation file.

As this didnt work, I thought of accepting the xml as a flat file and was trying to remove DTD reference and feed that to the Transform.


iWay ISM 5.5/iWay ISM 6.0 on Windows.
 
Posts: 20 | Registered: April 11, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Removing/Switch off the DTD reference in iWay 5.5

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.