How to read request xml

33 views
Skip to first unread message

poorna J

unread,
May 24, 2018, 7:09:50 AM5/24/18
to Fiddler
Hi team I need to fetch data from specific xml tags in request xml like reading xml tags. Can someone guide me

EricLaw

unread,
May 24, 2018, 9:32:34 AM5/24/18
to Fiddler
You'll need to explain more clearly what exactly you're trying to do. Fiddler shows all of the request data in the Request Inspectors at the top of the Fiddler window. 

poorna J

unread,
May 24, 2018, 7:09:49 PM5/24/18
to Fiddler
HI Eric, Thanks for the reply. Please find the following details.

I have saved my working response in captures folder and replying this dummy response to client using  oSession["x-replywithfile"]="xxxx.xml". this is working fine as expected, now my query is

when I am sending a new request to the fiddler again i  have read the new request xml file sent from the client and fetched some string value from the new request xml and stored in a string variable and now I want to replace this string value with  value in dummy repsponse stored in captures folder and resend this new dummy to the client again using oSession["x-replywithfile"]="xxxx.xml". 

In my capture folder xml i have following tag as
<OnlineServicesActivateResponse MajorVersion="1" MinorVersion="0" FixVersion="0" xmlns="sdfadsa">
<Header>
<Response ResponseCode="OK">
<RequestID>feb2bcf5-d022-4b16-a18b-660b06b94569</RequestID>
<ResponseTimestamp>2018-05-23T21:46:14</ResponseTimestamp>
</Response>
</Header>
<AuthorizationResponse>
<ResultCode>Success</ResultCode>
<AuthorizationCode>00</AuthorizationCode>
<AuthorizationDateTime>2018-05-23T21:46:14</AuthorizationDateTime>
<ReferenceNumber>asdf/ReferenceNumber>
<InitialBalance>40.00</InitialBalance>
<CurrentBalance>40.00</CurrentBalance>
<Message/>
<ProviderData>&lt;r10Ex:AuthorizationResponseCode&gt;00&lt;/r10Ex:AuthorizationResponseCode&gt;&lt;r10Ex:AuthorizationResponseText /&gt;&lt;r10Ex:SerialNumber&gt;000001433107&lt;/r10Ex:SerialNumber&gt;&lt;r10Ex:PIN&gt;749186266621&lt;/r10Ex:PIN&gt;&lt;r10Ex:ExpirationDate&gt;2019-05-23&lt;/r10Ex:ExpirationDate&gt;</ProviderData>
</AuthorizationResponse>
</OnlineServicesActivateResponse>

I  have fetched the value 150 from the new request xml and store in string variable.

I want to replace this 150 with where ever value 40 in my dummy saved response which is saved in captures folder and send this back to the client.

In short: I want to load the dummy response xml  saved in fiddler capture folder and replace some text in dummy response and resend this to client.

Jerry Lee Daniel

unread,
Dec 18, 2023, 4:25:41 PM12/18/23
to Fiddler

For Crypto Trading Investment Guidelines.
Business Administration
📱 Account Management
💳 Entrepreneurship
📈📉 Binary Options/Bitcoin Expert 💰 Loan
Best in stock marketing and Crypto currency investment.

NOTE: ONLY SERIOUS / ACTIVE TRADER CAN CONTACT.

DM ME ON WHATSAPP
+447487588816
Reply all
Reply to author
Forward
0 new messages