WCF webservice在LoadRunner中不工作
我已经按照下面的创建了自定义请求,我们正在按照下面的尝试重播wcf Web服务,但出现错误WCF webservice在LoadRunner中不工作,loadrunner,Loadrunner,我已经按照下面的创建了自定义请求,我们正在按照下面的尝试重播wcf Web服务,但出现错误 enter code here web_custom_request("ResidentScreening.svc_5", "URL=https://sushil.com/residentscreening/ResidentScreening.svc", "Method=POST", "Resource=0", "RecCo
enter code here
web_custom_request("ResidentScreening.svc_5",
"URL=https://sushil.com/residentscreening/ResidentScreening.svc",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=text/xml;charset=UTF-8",
"Body=<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tem=\"http://tempuri.org/\">\n <soapenv:Header/>\n <soapenv:Body>\n <tem:SubmitRequest>\n <tem:xml><?xml version="1.0" encoding="UTF-8"?><ApplicantScreening xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ResidentScreening3_0.xsd"><Request><PropertyID><Identification IDType="Property ID&"
"quot;><IDValue>115842</IDValue></Identification><MarketingName>My Properties</MarketingName></PropertyID><RequestType>New</RequestType><ReportOptions><ReportName>01</ReportName></ReportOptions><ReportID/><OriginatorID>26694</OriginatorID><OriginatorTrackingID>reference999</OriginatorTrackingID><MarketingSource>Rent.com</MarketingSource><UserName>autotest1</UserName><"
"UserPassword>Qctesting3</UserPassword></Request><LeaseTerms><MonthlyRent>1400.0000</MonthlyRent><LeaseMonths>12</LeaseMonths><AffordableLease SubsidyAmount="200.00">true</AffordableLease><SecurityDeposit>500.00</SecurityDeposit></LeaseTerms><Applicant><Other><CurrentRent>1400.0000</CurrentRent><ConsentObtained>YES</ConsentObtained></Other><Income><EmploymentStatus"
">Employed</EmploymentStatus><EmploymentType>Current</EmploymentType><EmployerName>Nordstrom<enter code here/EmployerName><EmploymentGrossIncome>4000.0000</EmploymentGrossIncome><EmploymentStartDate>2000-10-15</EmploymentStartDate><EmploymentEndDate>2005-01-20</EmploymentEndDate><OtherIncomeAmount>1500</OtherIncomeAmount><OtherIncomeType>Child Support</OtherIncomeType><OtherIncomePeriod>monthly</OtherIncomePeriod"
"></Income><AS_Information><ApplicantIdentifier>t0003544</ApplicantIdentifier><ApplicantType>Applicant</ApplicantType><GuarantorFor/><Spouse>t0003545</Spouse><MothersMaidenName/><Birthdate>1965-10-19</Birthdate><SocSecNumber>555559999</SocSecNumber><DriversLicenseID>027239657</DriversLicenseID><DriversLicenseState>GA</DriversLicenseState><AddressTerms MoveInDate="2000-10-10"&"
"gt;<Address AddressType="current"><Address>404 NW Napp St</Address><City>De Kalb</City><State>TX</State><PostalCode>75559</PostalCode><CountyName/><UnparsedAddress>404 NW Napp St</UnparsedAddress><Email/></Address></AddressT**strong text**erms><AddressTerms MoveInDate="1989-01-08" MoveOutDate="2000-10-10"><Address AddressType="previous"><Address>5555 Hollister Avenue"
"</Address><City>Goleta</City><State>CA</State><PostalCode>93117</PostalCode><CountyNameenter code here/><UnparsedAddress>5555 Hollister Avenue</UnparsedAddress><Email/></Address></AddressTerms></AS_Information><Customers><Customer><Identification IDType="applicant"><IDValue>t0003544</IDValue></Iden`enter code here`tification><Name><FirstName>Stress</FirstName><MiddleName/><"
"LastName>Test</LastName><MaidenName/></Name><Phone PhoneType="home"><PhoneNumber>714-982-1000</PhoneNumber></Phone><Lease><Identification><IDValue>t0003545</IDValue></Identification><ExpectedMoveInDate>2010-12-01</ExpectedMoveInDate><ExpectedMoveOutDate>2011-11-30</ExpectedMoveOutDate><LeaseFromDate>2010-12-01</LeaseFromDate><LeaseToDate>2011-11-30</LeaseToDate><"
"ResponsibleForLease>true</ResponsibleForLease><LeaseSignDate>2010-11-15</LeaseSignDate><SpecialStatus/><PaymentAccepted/><AccountNumber/><CurrentNumberOccupants Total="3" Child="1">3</CurrentNumberOccupants></Lease></Customer></Customers></Applicant><Applicant><Other><CurrentRent>1400.0000</CurrentRent><ConsentObtained>YES</ConsentObtained></Other><Income>&"
"lt;EmploymentType>Current</EmploymentType><EmployerName>Marsh Law Office</EmployerName><EmploymentGrossIncome>5000.0000</EmploymentGrossIncome></Income><AS_Information><ApplicantIdentifier>t0003545</ApplicantIdentifier><ApplicantType>Applicant</ApplicantType><GuarantorFor/><Spouse>t0003544</Spouse><Birthdate>1968-08-14</Birthdate><SocSecNumber>444449999</SocSecNumber><DriversLicenseID/"
"><DriversLicenseState/><AddressTerms MoveInDate="2000-10-10"><Address AddressType="current"><Address>404 NW Napp St</Address><City>De Kalb</City><State>TX</State><PostalCode>75559</PostalCode><CountyName/><UnparsedAddress>404 NW Napp St</UnparsedAddress><Email/></Address></AddressTerms><AddressTerms MoveInDate="1989-01-08" MoveOutDate="2000-10-10">&"
"lt;Address AddressType="previous"><Address>5555 Hollister Avenue</Address><City>Goleta</City><State>CA</State><PostalCode>93117</PostalCode><CountyName/><UnparsedAddress>5555 Hollister Avenue</UnparsedAddress><Email/></Address></AddressTerms></AS_Information><Customers><Customer><Identification IDType="applicant"><IDValue>t0003545</IDValue></"
"Identification><Name><FirstName>SpouseOf</FirstName><MiddleName/><LastName>Test</LastName><MaidenName>Thompson</MaidenName></Name><Lease><Identification><IDValue>t0003545</IDValue></Identification><ExpectedMoveInDate>2010-12-01</ExpectedMoveInDate><ExpectedMoveOutDate>2011-11-30</ExpectedMoveOutDate><LeaseFromDate>2010-12-01</LeaseFromDate><LeaseToDate>2011-11-30</"
"LeaseToDate><ResponsibleForLease>true</ResponsibleForLease><LeaseSignDate>2010-11-15</LeaseSignDate><SpecialStatus/><PaymentAccepted/><AccountNumber/><CurrentNumberOccupants Total="3" Child="1">3</CurrentNumberOccupants></Lease></Customer></Customers></Applicant><CustomRecords><Record><Name>User Defined 1</Name><Value>ClientRef 1</Value></Record><Record&"
"gt;<Name>User Defined 2</Name><Value>ClientRef 1</Value></Record><Record><Name>Unit Number</Name><Value>100</Value></Record></CustomRecords></ApplicantScreening></tem:xml>\n </tem:SubmitRequest>\n </soapenv:Body>\n</soapenv:Envelope>",
LAST);
lr_message(lr_eval_string("Response XML is \n{response}"));
return 0;
在此处输入代码
web自定义请求(“ResidentScreening.svc_5”,
“网址=https://sushil.com/residentscreening/ResidentScreening.svc",
“方法=发布”,
“资源=0”,
“RecContentType=text/xml”,
“Referer=”,
“Snapshot=t7.inf”,
“Mode=HTML”,
“EncType=text/xml;charset=UTF-8”,
“Body=\n\n\n\n?xml version=“1.0”encoding=“UTF-8”?应用程序筛选xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“xsi:noNamespaceSchemaLocation=“ResidentScreening3_0.xsd”RequestPropertyIDIdentification IDType=“属性ID&”
“IDValue115842/IDValue/IdentificationMarketingGNAMEMY Properties/MarketingName/PropertyIDRequestTypeNew/RequestTypeReportOptions ReportName01/ReportName/ReportOptions ReportId/OriginationD26694/OriginationOriginatorTrackingIDreference999/OriginationTrackingIDMarketingSourceRent.com/MarketingSourceUserNameautotest1/UserName”
“UserPasswordQctesting3/UserPassword/RequestLeastermsMonthlyrent1400.0000/MonthlyRentLeaseMonths12/LeasemonthsafforTableLease SubficationAmount=“200.00”真实/经济适用租赁安全存款500.00/SecurityDeposit/LeastermsApplicationTheCurrentRent1400.0000/CurrentRent同意获得是/获得同意/其他IncomeEmploymentStatus”
"雇佣/雇佣状态雇佣类型当前/雇佣类型雇佣类型此处的雇佣人姓名或职员代码/EmployerName雇佣总额4000.0000/Employment雇佣总额雇佣开始日期2000-10-15/Employment开始日期雇佣结束日期雇佣结束日期2005-01-20/Employment结束日期其他收入计量单位1500/其他收入计量单位其他收入计量单位儿童支持/其他收入计量单位其他收入计量单位收入计量单位ePeriod每月/其他收入期“
“/国际贸易术语解释通则信息应用识别码T0003544/应用识别码应用类型申请人/应用类型担保人/喷注设置0003545/喷注其他指定名称/出生日期1965-10-19/出生日期SOCSECnumber559999/SocSecNumberDriversLicenseID027239657/驾驶执照持有人IDDriversLicenseStateGA/驾驶执照持有人地址条款MoveInDate=”2000-10-10“&”
“gt;Address AddressType=“current”Address404 NW Napp St/AddressCityDe Kalb/CityStateTX/StatePostalCode75559/PostalCodeCountyName/UnparseAddress404 NW Napp St/UnparseAddressMail//Address/AddressT**strong text**ermsAddressTerms MoveInDate=“1989-01-08”MoveOutDate=“2000-10-10”Address Address AddressType=“先前的”地址5555 Hollister Avenue”
“/AddressCityGoleta/CityStateCA/StatePostalCode93117/PostalCodeCountyName此处输入代码/UnparseAddress5555 Hollister Avenue/UnparseAddressMail//Address/AddressTerms/AS_Information CustomersCustomerIdentification IDType=“申请人”IDValuet0003544/IDValue/Iden`在此处输入代码`tificationNameFirstNameStress/FirstNameMiddleName/”
“LastNameTest/LastNameMaideName//NamePhone PhoneType=“home”电话号码714-982-1000/PhoneNumber/PhoneLeaseIdentificationIDValuet0003545/IDValue/IdentificationExpectedMoveInDate2010-12-01/ExpectedMoveInDateExpectedMoveOutDate2011-11-30/ExpectedMoveOutDateLeaseFromDate2010-12-01/LeaseToDate 2011-11-30”
“responsibleforleasesindate2010-11-15/leasesindatespecialstatus/PaymentAccepted/AccountNumber/CurrentNumberOccupants Total=“3”Child=“1”3/CurrentNumberOccupants/Lease/Customers/applicationapplicationthercurrentRent 1400.0000/currentRent Approvement是/获得的同意/其他收入&”
"lt;Employment Type当前/就业类型EmployeerNameMarsh律师事务所/EmployeerNameEmployment Grossincome5000.0000/EmploymentGrossIncome/IncomeAS_Information Application Identifier T0003545/Application Identifier Application Type申请人/Application Type Guarantorf/Spooset0003544/SpooseBirthDate 1968-08-14/BirthDate SoSecNumber 444449999/SoSecNumber RiversLicensed/"
“DriversLicenseState/AddressTerms MoveInDate=“2000-10-10”Address AddressType=“current”Address404 NW Napp St/AddressCityDe Kalb/CityStateTX/StatePostalCode75559/PostalCodeCountyName/UnparseAddress404 NW Napp St/UnparseAddress Mail//Address TermsAddressTerms MoveInDate=“1989-01-08”MoveOutDate=“2000-10-10”&”
“lt;Address AddressType=“previous”Address5555 Hollister Avenue/AddressCityGoleta/CityStateCA/StatePostalCode93117/PostalCodeCountyName/UnparseAddress5555 Hollister Avenue/UnparseAddressMail//Address/AddressTerms/AS_Information Customers CustomerIdentification IDType=“申请人”IDValuet0003545/IDValue/”
“IdentificationNameFirstNameSpouseOf/FirstNameMiddleName/LastNameTest/LastNameMaidenAmethCompson/MaidenName/NameLeaseIdentificationIDValuet0003545/IDValue/IdentificationExpectedMoveIndated2010-12-01/ExpectedMoveIndatedExpectedMoveOutdate2011-11-30/ExpectedMoveOutdatedLeaseFromDate2010-12-01/LeaseFromDate2011-11-30/”
“LeaseToDate ResponsibleForLeaseAseTrue/ResponsibleForLeaseAseSignDate 2010-11-15/LeaseSignDate SpecialStatus/PaymentAccepted/AccountNumber/CurrentNumberCupants Total=“3”Child=“1”3/CurrentNumberCupants/Lease/Customers/AppliantCustomerRecords用户定义的记录1/NameValueClientRef 1/Value/RecordRecordRecord&”
“gt;名称用户定义的2/NameValueClientRef 1/Value/RecordNameUnit Number/NameValue100/Value/Record/CustomRecords/AppliantScreening\n\n”,
最后);
lr_消息(lr_eval_字符串(“响应XML是\n{Response}”);
返回0;
Action.c(102):错误-26612:HTTP状态代码=500(内部服务器错误)。如果有可用的工作示例,请共享。记录两次,比较。您还需要通过web\u add\u header()添加适当的soap头我们通过运行SOAP UI来实现这一点,同时Load runner正在捕获来自SOAP UI工具的SOAP请求。这是一种方法。但我们通过SOAP UI验证了服务请求,该方法运行良好。第二种方法-尝试从Load runner创建web服务调用,但没有成功。我发现以下错误-