Issue while reading XML file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Issue while reading XML file

Post by svga »

Hi -

I'm facing an issue while reading the XML file using XML input stage. Below is the error messge. I have also provided sample XML file. Could you please help me to resolve this issue?

Error msg:

ERI01_ExtractReinsXML..XML_ExtractTiff: The prefix 'soapenv' is not declared.
expression = '/soapenv:Envelope/soapenv:Body/ReinsuranceCases' Remaining tokens are: ('/')

Sample XML:
----------------------------------------------------------------


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<h:EIB_header soapenv:mustUnderstand="0" xmlns:h="http://www.axa-equitable.com/schemas/EIB_header">
<h:Transaction Trans_name="submitReinsurance"/>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/ ... xt-1.0.xsd">
<wsse:BinarySecurityToken>7VFG9teP0z6D290/yyKiXmgNjOya6qjjyR/Lq9FK9KszPFgNTbpPWeA3vrxJbzlAhp1w6ZmyenToA7yu/akycnEtZkKJ9wjpveAyHX9DpNP4dmuJC3yf1ARVsTo1a8kJ0uPr81RJoWfoQk9zZHV1b/OTasxJrBe/gg2Iml6eIdlmzC8ksUFDyF8yhuMwW+TM2izTFZj9HPgooV8grKBYvm2nx4rYG+u3RDAA9+zVNMEpRv+cvdBIFSDMtZ87asHDLQ+QzWOGFPY8MKQKcAo8xO5HcySbTQlzjBTGShuMST6+cwEK8odZLqmUvx2hwPSp7uBZG8rpAWkVh/KYMRkmLaY1XC/YP7RENtk7MlIm+p4=</wsse:BinarySecurityToken>
</wsse:Security>
</h:EIB_header>
</soapenv:Header>
<soapenv:Body>
<ReinsuranceCases xmlns="">
<Cases>
<Case ApplicationID="111322989" CaseID="111322933" Comment="" DateEntered="08/25/2011" FaceAmount="5555555">
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

how did you create your metaadata? did us use the xml metadata importer? if so, "load" the tabledef into the namespace property of the trsnaformation settings.
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Hi - This issue got resolved. Thank you.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It would be best (and help future searchers) if you actually posted the resolution rather than just the fact that you resolved it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Hi - I removed the prefix soapenv from the xpath and the job ran fine.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

That's certainly one way to do it, but the other (as noted above) would have populated the "namespace" box with the particular namespace value for the soapenv prefix....which probably would have looked something like:

xmlns:soapenv="http://www.w3c.org..../.../..."

That would have satisfied the requirement to have the prefix defined. Removing it works too! :)

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply