I have a B1IF package which call a webservice to export some data from B1
When I call this webservices I get an XML as response, but I can't read it.
This is what I get from the webservice
<Payload Role="C" id="atom24" statusNo="0" statusMsg="success" reference="atom25" payload="atom25" calltype="solicit response (call/reply)" adapter="WSAS">
<http.header>
<http.header.info id="Cache-Control" value="private, max-age=0"/>
<http.header.info id="X-Content-Type-Options" value="nosniff"/>
<http.header.info id="x-frame-options" value="sameorigin"/>
<http.header.info id="Content-Length" value="367"/>
<http.header.info id="X-XSS-Protections" value="1"/>
<http.header.info id="Date" value="Thu, 03 Dec 2020 17:20:50 GMT"/>
<http.header.info id="Content-Type" value="text/xml; charset=utf-8"/>
</http.header>
<LoadXmlResponse>
<LoadXmlResult><error></error></LoadXmlResult>
</LoadXmlResponse>
</Payload>
I'd like to test the response in a "path" atom
PATH ATOM:
I can't find the correct xpath expression to read the from the XML response.
I tried these:
/*[/vpf:Msg/vpf:Body/vpf:Payload[@Role='C' and @id='atom24']/LoadXmlResponse/LoadXmlResult/error='']
/*[/vpf:Msg/vpf:Body/vpf:Payload[@Role='C' and @id='atom24']/LoadXmlResponse/LoadXmlResult='<error></error>']
/*[/vpf:Msg/vpf:Body/vpf:Payload[@Role='C' and @id='atom24']/@statusMsg="success"]
But without success.