| || |
How can I interrogate one XML structure embedded inside another?
I'm testing an application that calls web services using SOAP over HTTP. My Vuser type of choice is (you guessed it) Web Services. I'm using the 'soap_request' function to make the requests, and I want to be able to use the LoadRunner 'xml_' functions to interrogate and manipulate responses from the server.
The problem is that the xml server request and response incorporate a second 'XML string', effectively nesting one XML structure within the other, e.g. (obviously this is just the start of the message):
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
<?xml version="1.0" encoding="windows-1252" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <ProcessMessageResponse xmlns="http://tempuri.org/">
<?xml version="1.0" encoding="utf-8" ?>
<messagetype version="">SearchPersonOrganization&l t;/messagetype>
- <ArrayOfAnyType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">......</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">When I try to use functions such as xml_extract against the above, everything from the second opening <?xml version="1.0" encoding="utf-8" ?> tag - i.e. the stuff I'm really interested in - is ignored by LoadRunner.
Does anyone have any suggestions as to how I can get LR to work with the 'inner' xml structure?