Announcement

Collapse
No announcement yet.

Name space issue with file reader channel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Name space issue with file reader channel

    I have a file reader channel picking up an xml file. The xml has a namespace and looks like this:

    <ns0:GoldCare_Assessment xmlns:ns0="http://GoldCareAIM.xsd">
    ...
    </ns0:GoldCare_Assessment>

    I have some javascript in my source transformer step 0:

    logger.error('transform setnamespace start');
    msg.setNamespace(new Namespace("ns0", "http://GoldCareAIM.xsd"));
    logger.error('transform setnamespace end');

    When the channel processes a message, I get the "Use of undefined namespace prefix: ns0"

    How do I handle the namespace and can I do it without modifying the message?
Working...
X