ERROR Invalid Input _sStaticException Namespace not known
search cancel

ERROR Invalid Input _sStaticException Namespace not known

book

Article ID: 384428

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

When attempting to test parsing a response on a RA Webservice Rest or SOAP Job, the below error is seen in the Results:

ERROR Invalid Input
_sStaticException  Namespace not known

Parse expression example value used is seen below: 

/env:example1/env:Body/wd:example2/wd:example3/wd:ID[@wd:type="required_example_value"]

Please note that exact expression required may differ based on Input string.

Cause

Parsing parameter may be incorrect

Resolution

All XML namespace (Xmlns) Tags are removed by design. So the XML passed doesn't contain any namespace prefixes. Additionally, ":" in attribute name get converted to hyphen as in wd-type instead of wd:type.

With this in mind, instead of using:

/env:example1/env:Body/wd:example2/wd:example3/wd:ID[@wd:type="required_example_value"]

The following XPath works:

/example1/Body/example2/example3/ID[@wd-type="required_example_value"]