Re: Can't see XML response data while recording Java over HTTP Protocol (357 Views)
Reply
Occasional Visitor
samraw83
Posts: 1
Registered: ‎03-18-2013
Message 1 of 3 (424 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/R...", 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/R...", 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/R...", 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/Pre...", 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.

Please use plain text.
Frequent Visitor
Sapient
Posts: 2
Registered: ‎11-10-2011
Message 2 of 3 (388 Views)

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

[ Edited ]

I am facing same Issue Rawat Bhai

Please use plain text.
Occasional Advisor
IrBulb
Posts: 7
Registered: ‎06-21-2012
Message 3 of 3 (357 Views)

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

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation