Highlighted
Absent Member.
Absent Member.
182 views

Xml Parametrization in LoadRunner

We are using LR 9.5 and selected Webservices protocol and imported Xml through soap request.
We want to parametrize the Xml in the web_service_call function. In the below examplae we want to prametrize the xml in Poet tag

For Ex:

web_service_call( "StepName=createOrganizaton_102",
"SOAPMethod=PoeticToFNOTranslationService|PoeticToFNOoint|createOaton",
"ResponseParam=response",
"Service=ic",
"ExpectedResponse=SoapResult",
"Snapshot=",
BEGIN_ARGUMENTS,
"xmlaram0="
""
"?"
"_http://elmwtre01:8080/fle/ser/"
"?"
"?"
"?"
"ad"
"<?xml version=\"1.0\"?>\n<Poetic xmlns:xsi=\"_http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"_http://elmwtstweb02:8080/poeticWeb/xmlcomm/poetic.xsd\">\n\t<Envelope dateTime=\"20100524163900501\" documentType=\"SetExternalEntitlement\" dtdRev=\"2.0\" timeZone=\"GMT\" trader=\"Poetic\" xid=\"547\"/>\n\t<Payload>\n\t\t<SetExternalEntitlement>\n\t\t\t<Entitlement>\n\t\t\t\t<Item type=\"License\" act=\"Update\" contractGroupPoeticInternalID=\"10\" contractGroupName=\"A \" contractGroupPubID=\"PTA0\" activationTypeCode=\"PERM\" quantity=\"1\" activatedQuantity=\"0\" productNum=\"45\" productDescription=\"Replication Mangager Agent\" polID=\"11\" entitlementLAC=\"81X\" lacDisplayOptionCode=\"SH\" lacActivationOptionCode=\"FORCE_ANON\" licenseVersion=\"5.2\" version=\"5\" familyCode=\"R\" familyDescription=\"RM Agent\" languageCode=\"US\" languageDescription=\"US English\" deploymentCode=\"N\" deploymentDescription=\"Network\" platformCode=\"MLP\" platformDescription=\"Multiple Platforms\" productLineCode=\"RM\" productLineDescription=\"Replication Manger\" startDate=\"201\" bypeCode=\"NONE\" "
"admin"
"
",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
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.