Highlighted
Honored Contributor.
Honored Contributor.
373 views

Correlation and Parameterization in Java Over Http Protocol

Hi,

 

I have recorded a JNLP application using java over http protocol. All the Body Binary values are stored into xml in readable format inside the script.

Below are the challenges i'm currently facing while scripting:

1)13 digit timestamp in request.xml .How to save the 13 digit value and pass it in the request.

2)Need clear picture of the correlation and Parameterization in the request.xml

 

Please share your comment as soon as possible.

 

Thanks & Regards,

Raghul

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: Correlation and Parameterization in Java Over Http Protocol

Hi,

In generated Actions.java file you can manipulate your objects exactly like with any Java object.  Any call to JavaHTTP.SendSerialized accepts object and returns object. you can read data from one and put it to another

You should have code like this and don't manipulate XML directly. 

ExampleBusinessLogicClass0 = JavaHTTP.readObject(ExampleBusinessLogicClassBA0);
ExampleBusinessLogicClass1 = JavaHTTP.sendSerialized(ExampleBusinessLogicClass0, 0..... 
ExampleBusinessLogicClass0.setTime(ExampleBusinessLogicClass1.getTime())
JavaHTTP.sendSerialized(ExampleBusinessLogicClass0...
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.