This is a migrated thread and some comments may be shown as answers.

A multipart/mixed inspector?

1 Answer 324 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 31 Jan 2014, 08:48 PM
I work with OData $batch payloads quite a bit.  These are multipart/mixed -- both request and response.

I normally use the RAW view to make sure the headers, verbs, and batch envelopes look right.

However, the payload of a multipart/mixed has additional "sessions" and bodies inside of it, and none of the inspectors can reason over those.

The XML and JSON inspectors are especially nice for examining the entity data in OData batch requests, especially as the payload XML and JSON typically doesn't have line breaks in it. 

My dream is proper support for multipart/mixed, such that the normal inspector chain can be re-used on each sub-item in the batch.

That way, when I look at a request/response pair that are batch, I can move through each batch part, and when I get to one with a JSON payload I can flip the JSON inspector on and get a nice structured view.

Have you thought about how to do this?  I submitted some code to the WCF Binary inspector a while back, but this "super inspector" seems like it has some substantial additional requirements.  Certainly, to make this excellent you'd need some additional UI magic to deal with presentation and context selection for each batch element; furthermore you might want to have an option so that changing the currently selected batch element in the request also changes to a corresponding (in sequence position) response inspector..

Thanks,
Matt

1 Answer, 1 is accepted

Sort by
0
EricLaw
Top achievements
Rank 1
answered on 31 Jan 2014, 09:54 PM
Hey, Matt-- Thanks for the post. I've indeed given the multipart/mixed scenario a bit of thought over the years, but haven't come up with a good approach for doing this yet that would be able to leverage all of the other Inspectors. I'll continue to think about this; if you have some examples (SAZ files) you could share with me to ensure I'm building the right thing for you, please send them my way using the Help > Send Feedback option in Fiddler.

thanks again!
Tags
Extensions and Customization
Asked by
Matt
Top achievements
Rank 1
Answers by
EricLaw
Top achievements
Rank 1
Share this question
or