LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Can't see XML response data while recording Java over HTTP Protocol

Highlighted
Occasional Visitor

Can't see XML response data while recording Java over HTTP Protocol

I have tried to record the script using Java over HTTP protocol.....

It was for a Login screen I entered Username and Password, logged into the app and logged out...

 

here's the VB script..

 


lr.think_time(0);

_webresult = lrapi.web.custom_request("RequestManagerHome.class",
"URL=http://10.38.11.45:10001/bea_wls_internal/classes/PMW@/com/wellmanage/investsys/cci/server/request/RequestManagerHome.class", new String[]{
"Method=GET",
"Resource=1",
"RecContentType=application/x-java-vm",
"Referer=",
"Snapshot=t26.inf",
LAST}) // couldn't decode request from body, couldn't decode response from body
;

_webresult = lrapi.web.custom_request("RequestManagerHome.class_2",
"URL=http://10.38.11.45:10001/bea_wls_internal/classes/PMW@/com/wellmanage/investsys/cci/server/request/RequestManagerHome.class", new String[]{
"Method=GET",
"Resource=1",
"RecContentType=application/x-java-vm",
"Referer=",
"Snapshot=t27.inf",
LAST}) // couldn't decode request from body, couldn't decode response from body
;

_webresult = lrapi.web.custom_request("RequestManager.class",
"URL=http://10.38.11.45:10001/bea_wls_internal/classes/PMW@/com/wellmanage/investsys/cci/server/request/RequestManager.class", new String[]{
"Method=GET",
"Resource=1",
"RecContentType=application/x-java-vm",
"Referer=",
"Snapshot=t28.inf",
LAST}) // couldn't decode request from body, couldn't decode response from body
;

_webresult = lrapi.web.custom_request("PreferencesServiceHome.class",
"URL=http://10.38.11.45:10001/bea_wls_internal/classes/PMW@/com/wellmanage/investsys/cci/server/prefs/PreferencesServiceHome.class", new String[]{
"Method=GET",
"Resource=1",
"RecContentType=application/x-java-vm",
"Referer=",
"Snapshot=t29.inf",
LAST}) // couldn't decode request from body, couldn't decode response from body
;

lr.end_transaction("login_trans_username",lr.AUTO);

 

Now the issue is it couldn't decode the request or response from the body.... i.e. an XML string which should have username and password string repectively from top 2 and bottom 2 requests... please help me how can I get that xml string.

2 REPLIES
Regular Visitor

Re: Can't see XML response data while recording Java over HTTP Protocol

[ Edited ]

I am facing same Issue Rawat Bhai

Occasional Advisor

Re: Can't see XML response data while recording Java over HTTP Protocol

[ Edited ]

Java over HTTP decodes only the payload which is in form of Java serialization formed with ObjectOutputStream and represents it as deserialized object inside the script. If you want to analyze xml - do it the same way as you would do it with web/http protocol. JOH is just the converter of web script to java language plus recognition of java serializations.

If you want to see xml itself - go to data directory and check file tXX.inf and surrounding files (e.g. t87.inf t87_RequestBody.txt t87_RequestHeader.txt t87_ResponseHeader.txt t87.html ). Response body should be in .html