LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  XML with name spaces

    Employee
    Posted 03-14-2013 22:55

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: nuras

    Hi,

    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?


  • 2.  RE: XML with name spaces

    Employee
    Posted 03-22-2013 08:10

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rpigneri

    Dear Nuras,

    From what you have said, it sounds like you are running into a known issue in the XMLpy File node. As of now, the XMLpy File node does not support namespaces in XML. However, the Tabular XML nodes (Tabular XML File and Convert Tabular XML) in the LAL library will soon be updated to support namespaces. You might find these nodes easier to use than the XMLpy File node.

    Hope that helps,

    Rocco


  • 3.  RE: XML with name spaces

    Employee
    Posted 04-15-2013 20:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: nuras

    Thanks Rocco. I am hoping these type of issues are fixed in next version.


  • 4.  RE: XML with name spaces

    Employee
    Posted 04-18-2013 11:59

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: jed99

    I have been looking at the release notes for the LAL Library and haven't seen any mention of the Tabular XML file being update for namespace support - has that support been added yet?

    Thanks


  • 5.  RE: XML with name spaces

    Employee
    Posted 04-18-2013 12:31

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rboccuzzi

    Not yet, but possibly next week.

    Cheers
    Rich