WCF webservice在LoadRunner中不工作

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

我已经按照下面的创建了自定义请求,我们正在按照下面的尝试重播wcf Web服务,但出现错误

    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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;ApplicantScreening xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;ResidentScreening3_0.xsd&quot;&gt;&lt;Request&gt;&lt;PropertyID&gt;&lt;Identification IDType=&quot;Property ID&"
        "quot;&gt;&lt;IDValue&gt;115842&lt;/IDValue&gt;&lt;/Identification&gt;&lt;MarketingName&gt;My Properties&lt;/MarketingName&gt;&lt;/PropertyID&gt;&lt;RequestType&gt;New&lt;/RequestType&gt;&lt;ReportOptions&gt;&lt;ReportName&gt;01&lt;/ReportName&gt;&lt;/ReportOptions&gt;&lt;ReportID/&gt;&lt;OriginatorID&gt;26694&lt;/OriginatorID&gt;&lt;OriginatorTrackingID&gt;reference999&lt;/OriginatorTrackingID&gt;&lt;MarketingSource&gt;Rent.com&lt;/MarketingSource&gt;&lt;UserName&gt;autotest1&lt;/UserName&gt;&lt;"
        "UserPassword&gt;Qctesting3&lt;/UserPassword&gt;&lt;/Request&gt;&lt;LeaseTerms&gt;&lt;MonthlyRent&gt;1400.0000&lt;/MonthlyRent&gt;&lt;LeaseMonths&gt;12&lt;/LeaseMonths&gt;&lt;AffordableLease SubsidyAmount=&quot;200.00&quot;&gt;true&lt;/AffordableLease&gt;&lt;SecurityDeposit&gt;500.00&lt;/SecurityDeposit&gt;&lt;/LeaseTerms&gt;&lt;Applicant&gt;&lt;Other&gt;&lt;CurrentRent&gt;1400.0000&lt;/CurrentRent&gt;&lt;ConsentObtained&gt;YES&lt;/ConsentObtained&gt;&lt;/Other&gt;&lt;Income&gt;&lt;EmploymentStatus"
        "&gt;Employed&lt;/EmploymentStatus&gt;&lt;EmploymentType&gt;Current&lt;/EmploymentType&gt;&lt;EmployerName&gt;Nordstrom&lt;enter code here/EmployerName&gt;&lt;EmploymentGrossIncome&gt;4000.0000&lt;/EmploymentGrossIncome&gt;&lt;EmploymentStartDate&gt;2000-10-15&lt;/EmploymentStartDate&gt;&lt;EmploymentEndDate&gt;2005-01-20&lt;/EmploymentEndDate&gt;&lt;OtherIncomeAmount&gt;1500&lt;/OtherIncomeAmount&gt;&lt;OtherIncomeType&gt;Child Support&lt;/OtherIncomeType&gt;&lt;OtherIncomePeriod&gt;monthly&lt;/OtherIncomePeriod"
        "&gt;&lt;/Income&gt;&lt;AS_Information&gt;&lt;ApplicantIdentifier&gt;t0003544&lt;/ApplicantIdentifier&gt;&lt;ApplicantType&gt;Applicant&lt;/ApplicantType&gt;&lt;GuarantorFor/&gt;&lt;Spouse&gt;t0003545&lt;/Spouse&gt;&lt;MothersMaidenName/&gt;&lt;Birthdate&gt;1965-10-19&lt;/Birthdate&gt;&lt;SocSecNumber&gt;555559999&lt;/SocSecNumber&gt;&lt;DriversLicenseID&gt;027239657&lt;/DriversLicenseID&gt;&lt;DriversLicenseState&gt;GA&lt;/DriversLicenseState&gt;&lt;AddressTerms MoveInDate=&quot;2000-10-10&quot;&"
        "gt;&lt;Address AddressType=&quot;current&quot;&gt;&lt;Address&gt;404 NW Napp St&lt;/Address&gt;&lt;City&gt;De Kalb&lt;/City&gt;&lt;State&gt;TX&lt;/State&gt;&lt;PostalCode&gt;75559&lt;/PostalCode&gt;&lt;CountyName/&gt;&lt;UnparsedAddress&gt;404 NW Napp St&lt;/UnparsedAddress&gt;&lt;Email/&gt;&lt;/Address&gt;&lt;/AddressT**strong text**erms&gt;&lt;AddressTerms MoveInDate=&quot;1989-01-08&quot; MoveOutDate=&quot;2000-10-10&quot;&gt;&lt;Address AddressType=&quot;previous&quot;&gt;&lt;Address&gt;5555 Hollister Avenue"
        "&lt;/Address&gt;&lt;City&gt;Goleta&lt;/City&gt;&lt;State&gt;CA&lt;/State&gt;&lt;PostalCode&gt;93117&lt;/PostalCode&gt;&lt;CountyNameenter code here/&gt;&lt;UnparsedAddress&gt;5555 Hollister Avenue&lt;/UnparsedAddress&gt;&lt;Email/&gt;&lt;/Address&gt;&lt;/AddressTerms&gt;&lt;/AS_Information&gt;&lt;Customers&gt;&lt;Customer&gt;&lt;Identification IDType=&quot;applicant&quot;&gt;&lt;IDValue&gt;t0003544&lt;/IDValue&gt;&lt;/Iden`enter code here`tification&gt;&lt;Name&gt;&lt;FirstName&gt;Stress&lt;/FirstName&gt;&lt;MiddleName/&gt;&lt;"
        "LastName&gt;Test&lt;/LastName&gt;&lt;MaidenName/&gt;&lt;/Name&gt;&lt;Phone PhoneType=&quot;home&quot;&gt;&lt;PhoneNumber&gt;714-982-1000&lt;/PhoneNumber&gt;&lt;/Phone&gt;&lt;Lease&gt;&lt;Identification&gt;&lt;IDValue&gt;t0003545&lt;/IDValue&gt;&lt;/Identification&gt;&lt;ExpectedMoveInDate&gt;2010-12-01&lt;/ExpectedMoveInDate&gt;&lt;ExpectedMoveOutDate&gt;2011-11-30&lt;/ExpectedMoveOutDate&gt;&lt;LeaseFromDate&gt;2010-12-01&lt;/LeaseFromDate&gt;&lt;LeaseToDate&gt;2011-11-30&lt;/LeaseToDate&gt;&lt;"
        "ResponsibleForLease&gt;true&lt;/ResponsibleForLease&gt;&lt;LeaseSignDate&gt;2010-11-15&lt;/LeaseSignDate&gt;&lt;SpecialStatus/&gt;&lt;PaymentAccepted/&gt;&lt;AccountNumber/&gt;&lt;CurrentNumberOccupants Total=&quot;3&quot; Child=&quot;1&quot;&gt;3&lt;/CurrentNumberOccupants&gt;&lt;/Lease&gt;&lt;/Customer&gt;&lt;/Customers&gt;&lt;/Applicant&gt;&lt;Applicant&gt;&lt;Other&gt;&lt;CurrentRent&gt;1400.0000&lt;/CurrentRent&gt;&lt;ConsentObtained&gt;YES&lt;/ConsentObtained&gt;&lt;/Other&gt;&lt;Income&gt;&"
        "lt;EmploymentType&gt;Current&lt;/EmploymentType&gt;&lt;EmployerName&gt;Marsh Law Office&lt;/EmployerName&gt;&lt;EmploymentGrossIncome&gt;5000.0000&lt;/EmploymentGrossIncome&gt;&lt;/Income&gt;&lt;AS_Information&gt;&lt;ApplicantIdentifier&gt;t0003545&lt;/ApplicantIdentifier&gt;&lt;ApplicantType&gt;Applicant&lt;/ApplicantType&gt;&lt;GuarantorFor/&gt;&lt;Spouse&gt;t0003544&lt;/Spouse&gt;&lt;Birthdate&gt;1968-08-14&lt;/Birthdate&gt;&lt;SocSecNumber&gt;444449999&lt;/SocSecNumber&gt;&lt;DriversLicenseID/"
        "&gt;&lt;DriversLicenseState/&gt;&lt;AddressTerms MoveInDate=&quot;2000-10-10&quot;&gt;&lt;Address AddressType=&quot;current&quot;&gt;&lt;Address&gt;404 NW Napp St&lt;/Address&gt;&lt;City&gt;De Kalb&lt;/City&gt;&lt;State&gt;TX&lt;/State&gt;&lt;PostalCode&gt;75559&lt;/PostalCode&gt;&lt;CountyName/&gt;&lt;UnparsedAddress&gt;404 NW Napp St&lt;/UnparsedAddress&gt;&lt;Email/&gt;&lt;/Address&gt;&lt;/AddressTerms&gt;&lt;AddressTerms MoveInDate=&quot;1989-01-08&quot; MoveOutDate=&quot;2000-10-10&quot;&gt;&"
        "lt;Address AddressType=&quot;previous&quot;&gt;&lt;Address&gt;5555 Hollister Avenue&lt;/Address&gt;&lt;City&gt;Goleta&lt;/City&gt;&lt;State&gt;CA&lt;/State&gt;&lt;PostalCode&gt;93117&lt;/PostalCode&gt;&lt;CountyName/&gt;&lt;UnparsedAddress&gt;5555 Hollister Avenue&lt;/UnparsedAddress&gt;&lt;Email/&gt;&lt;/Address&gt;&lt;/AddressTerms&gt;&lt;/AS_Information&gt;&lt;Customers&gt;&lt;Customer&gt;&lt;Identification IDType=&quot;applicant&quot;&gt;&lt;IDValue&gt;t0003545&lt;/IDValue&gt;&lt;/"
        "Identification&gt;&lt;Name&gt;&lt;FirstName&gt;SpouseOf&lt;/FirstName&gt;&lt;MiddleName/&gt;&lt;LastName&gt;Test&lt;/LastName&gt;&lt;MaidenName&gt;Thompson&lt;/MaidenName&gt;&lt;/Name&gt;&lt;Lease&gt;&lt;Identification&gt;&lt;IDValue&gt;t0003545&lt;/IDValue&gt;&lt;/Identification&gt;&lt;ExpectedMoveInDate&gt;2010-12-01&lt;/ExpectedMoveInDate&gt;&lt;ExpectedMoveOutDate&gt;2011-11-30&lt;/ExpectedMoveOutDate&gt;&lt;LeaseFromDate&gt;2010-12-01&lt;/LeaseFromDate&gt;&lt;LeaseToDate&gt;2011-11-30&lt;/"
        "LeaseToDate&gt;&lt;ResponsibleForLease&gt;true&lt;/ResponsibleForLease&gt;&lt;LeaseSignDate&gt;2010-11-15&lt;/LeaseSignDate&gt;&lt;SpecialStatus/&gt;&lt;PaymentAccepted/&gt;&lt;AccountNumber/&gt;&lt;CurrentNumberOccupants Total=&quot;3&quot; Child=&quot;1&quot;&gt;3&lt;/CurrentNumberOccupants&gt;&lt;/Lease&gt;&lt;/Customer&gt;&lt;/Customers&gt;&lt;/Applicant&gt;&lt;CustomRecords&gt;&lt;Record&gt;&lt;Name&gt;User Defined 1&lt;/Name&gt;&lt;Value&gt;ClientRef 1&lt;/Value&gt;&lt;/Record&gt;&lt;Record&"
        "gt;&lt;Name&gt;User Defined 2&lt;/Name&gt;&lt;Value&gt;ClientRef 1&lt;/Value&gt;&lt;/Record&gt;&lt;Record&gt;&lt;Name&gt;Unit Number&lt;/Name&gt;&lt;Value&gt;100&lt;/Value&gt;&lt;/Record&gt;&lt;/CustomRecords&gt;&lt;/ApplicantScreening&gt;</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服务调用,但没有成功。我发现以下错误-