Highlighted
samraw83 Absent Member.
Absent Member.
1382 views

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.

Tags (1)
0 Likes
2 Replies
Absent Member.. Sapient Absent Member..
Absent Member..

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

I am facing same Issue Rawat Bhai

0 Likes
IrBulb Absent Member.
Absent Member.

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

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

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.