Forum Discussion

Rkoornneef's avatar
Occasional Contributor
6 years ago

Unexpected token name beyond expression

While trying to store a session ID from a SOAP response into a property I am encountering a problem.




The response I want to retrieve info from is:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="" xmlns:NS1="urn:InvokableUserManagement-IinvUserManagement">
<return xsi:type="xsd:string">6Tx5Lq33VLVWQiLLmKlRbQ==</return>


When pressing the ns button to declare the namespaces I receive this:


declare namespace soap='';
declare namespace ns1='urn:InvokableUserManagement';
declare namespace ns2='***';
declare namespace ns3='***';


Then when setting the path to what I want to return:


//ns1:CreateSessionResponse/return xsi:type="xsd:string"


I get the errorXPath syntax error{...} Unexpected token name "xsi:type" beyond end of expression.


//return xsi:type="xsd:string" gives me the same error while //return stores the entire return (including header info) in the transferred property.

What is it that goes wrong? The space or special characters in the return tag???


Any help is greatly appreciated

4 Replies

    • Rkoornneef's avatar
      Occasional Contributor