Run a script to parse and build xml before and after a request #3534
Unanswered
rmclaughlin-nelnet
asked this question in
Ideas
Replies: 3 comments
|
I have been trying to do this with plugins and it is way too onerous, I would have to write a custom tag for every endpoint. If you simply had the ability to run a pre and post script like postman this would be solved. For now I will stick with postman. If you ever add this ability I will try insomnia again. Thanks. |
0 replies
|
Really helpful with pre and post script. Please add the ability. |
0 replies
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
I am currently building an integration with a SOAP XML service. It uses a cumbersone authentication process that I would like to automate with request chaining, but I need to be able to run a script in between each request, and preferably before the first request to parse the response.
The initial request requires values to be passed in, but the HTML entities must be encoded, because this is terrible for a human to read it would be nice to run a script before the request that encodes the HTML
This is what I am currently doing in postman before the first request to build the xml
Then when I get the response I parse the XML like this. Maybe this can be done with request chaining? I don't think I can because the XML I need is inside a string, that is why I do
xml2JSONand before I send the next request I have to encode the HTML entities again
Last I build two authenticated objects (one for xml, one for json) for all the other requests
Describe the solution you'd like
I would like to be able to run a script before and after each request
Describe alternatives you've considered
Postman is able to do this easily
Can this be done with a plugin? If so, do plugins sync with team collaboration? This is a must.
Additional context
Add any other context or screenshots about the feature request here.
All reactions