我已按照以下方式创建了自定义请求,我们按照以下方式尝试重播wcf webservice,但收到错误
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;
Action.c(102):错误-26612:HTTP状态代码= 500(内部服务器错误)。请分享是否有可用的工作样本。
答案 0 :(得分:0)
记录两次,比较。您还需要通过web_add_header()
添加适当的soap标头