I am trying to upload a XML file using loadrunner vugen. I have placed the file in loadrunner script file and make sure that all the headers and correlation values are perfect. Still the file is not getting uploaded. When I tried to add the missing content-type=application/xml after the file then I am facing memory violation error.
web_submit_data("Fileupload_VF_3",
"Action={P_BFCTool_URL}/Fileupload_VF",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer={P_BFCTool_URL}/apex/Fileupload_VF?sfdc.tabName={C_lID}",
"Snapshot=t28.inf",
"Mode=HTTP",
ITEMDATA,
"Name={C_JID}", "Value={C_JID}", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id33:j_id35:ftype", "Value=NFeDF", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id43:j_id44:0:j_id45:fileId:inputFile:file", "Value={P_NFEDF_File}.xml", "File=yes", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id43:j_id44:1:j_id45:fileId:inputFile:file", "Value=", "File=yes", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id43:j_id44:2:j_id45:fileId:inputFile:file", "Value=", "File=yes", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id43:j_id44:3:j_id45:fileId:inputFile:file", "Value=", "File=yes", ENDITEM,
"Name=j_id0:j_id5:pgblck:j_id43:j_id44:4:j_id45:fileId:inputFile:file", "Value=", "File=yes", ENDITEM,
"Name={C_UploadJID}", "Value=Upload", ENDITEM,
"Name=com.abcd.ViewState", "Value={C_Viewstate2}", ENDITEM,
"Name=com.abcd.ViewStateVersion", "Value={C_ViewstateVersion2}", ENDITEM,
"Name=com.abcd.ViewStateMAC", "Value={C_ViewStateMAC2}", ENDITEM,
"Name=com.abcd.ViewStateCSRF", "Value={C_ViewstateCSRF2}", ENDITEM,
LAST);
In the same script I have a PDF upload and the same is working fine. Is XML upload is possible with loadrunner and how to resolve the issue?