Reputation: 191
When working with XML responses I dont have the option to Copy as Response body dynamic value? Is this facility only available with JSON?
UPDATE-1: Can't seem to get it working
I can add the Request object but the Key Path (dotted xpath) to the desired data is not giving the expected results. I am using "plan.link"
So the xml is like this
<plan>
<id>7286</id>
<piuid>1</piuid>
<title>Bollard Positions</title>
<link>http://<my-server-name>/port/1/plan/7286.gif</link>
</plan>
And I want to pick the url from the link element (plan.link)
But Paw is not reading right and changes the request to
GET / HTTP/1.1
Host: echo.paw.cloud
Connection: close
User-Agent: Paw/3.1.3 (Macintosh; OS X/10.11.6) GCDHTTPRequest
I'm doing something wrong but not sure what.
Any suggestions?
Upvotes: 1
Views: 261
Reputation: 3481
That's true, sadly you cannot just right-click and pick Copy as Response Body Dynamic Value for XML responses (only works for JSON and Form URL-Encoded).
Though, you can manually set a dynamic value to point to this field.
text
key to access the string's value.Upvotes: 0