JavaHTTP.sendSerialized

Example: Java over HTTP ActionJava over HTTP Vuser Functions

Serializes an object and sends it synchronously on HTTP with the given options.

public static Object sendSerialized(Object obj, int fileNumber, String serializerName, String stepName, String urlAddress, String[] options) throws HttpException, IOException
public static Object sendSerialized(Object obj, int fileNumber, String serializerName, String stepName, String urlAddress, String[] options, boolean performErrorChecking) throws HttpException, IOException 

Arguments

ArgumentDescription
obj An object.
fileNumber The ordinal number of the header file.
serializerName The serialization method.
stepName The name of the step, as it appears in the test tree. Any text can be used.
urlAddress The URL of the service that receives the object.
options The invocation options to be passed to the server.
performErrorChecking true to perform validation. If not passed, uses the value of the system property, validateNoException.

Common options are:

"Method=POST",

"Resource=0",

"RecContentType=application/x-java-serialized-object",

"Referer=",

"Mode=HTML",

"EncType=application/x-java-serialized-object",

Parameterization

Parameterization is not applicable to this function.