JavaHTTP.sendSerialized

Example: Java over HTTP ActionJava over HTTP Vuser Functions

Serializes an object and sends it to the server.

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 
ArgumentDescription
obj A RemoteInvocation 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.

sendSerialized serializes an object and sends it to the server.

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.