Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: nurasHi,
Can someone help me with the xml reader node?
BRE Version : BRE 4.5.0.3 Build 365
OS : Win 7 SP1
Server : Localhost
I am trying to read a SOAP message using the xmlpy file node. I can read if there are no namespaces in the XML however once I have the prefix "ns2:" the node fails with the below error :
Got Python exception
2013-03-15 16:15:45.000; ERROR: invalid syntax (temp.ABCDEF.3872.206.1363324545356.prop, line 412)
id: 0 chain: 0 group: 0
cppDetail: context: brainLoadModule( ) - Exception C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py@827
2013-03-15 16:15:45.000; ERROR: Couldn't load py2 module from file: C:\BRAINscratch\tmp\brain\test\default\temp.ABCDEF .3872.206.1363324545356.prop
Traceback (most recent call last):
File "C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py", line 827, in brainLoadModule
mod = imp.load_module(moduleName, py2f, fname, suf[2])
File "C:\BRAINscratch\tmp\brain\test\default\temp.ABCDE F.3872.206.1363324545356.prop", line 412
data['ID'] = element.ns2:Id
^
SyntaxError: invalid syntax
id: 0 chain: 0 group: 0
cppDetail: context: brainLoadModule( ) - Exception C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py@827
2013-03-15 16:15:45.626; WARN: Node reported the following messages to stderr:
Error in sys.excepthook:Traceback (most recent call last): File "C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py", line 948, in <lambda> return lambda exc, value, tb: Python1ExceptHook(control, exc, value, tb)TypeError: 'NoneType' object is not callableOriginal exception was:Traceback (most recent call last): File "C:\BRAINscratch\tmp\brain\test\default\temp.ABCDE F.3872.207.1363324545365.prop", line 1, in <module> import lavastorm.brain.python1 File "C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py", line 957, in <module> runMain() File "C:\Program Files\Lavastorm\LAE 4.5\lib\python\lavastorm\brain\python1.py", line 955, in runMain raise BrainNodeException, "Encountered error running node"lavastorm.brain.python1.BrainNodeException: Encountered error running node
id: 0 chain: 0 group: 0
this error message is received when i haev the "ns2:" identifier in the element handler and the XPath.
I tried removing the ns2 tasg from all nodes except the header where the ns2 defn were present and the node ran successfully but did not return anything.
Next I tried removing all ns2 from the file and ran it and it worked perfectly well.
Any clue?