我正在尝试通过JMeter发送SOAP请求。
使用SOAPUI处理的同一请求引发错误
Unable to parse element AccountTransferRequest - null
我已使用以下设置通过“ SOAP Message UsernameToken”,“ SOAP Message Signer”和“ SOAP Message Decrypter”向Jmeter中的请求添加了密码“摘要”
和XML如下所示。
POST data:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true"><wsse:UsernameToken wsu:Id="UsernameToken-XXX3e0b2-XXXX-XXXX-8bb5-56d7fad80a1a"><wsse:Username>XX.XX*.XXX.XXX.XXX</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">8gwWQteXXXXXXkLXXXXOsRbbb90=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">0L6pvQBOZXQWgkxscM3Xaw==</wsse:Nonce><wsu:Created>2018-07-20T20:35:41.963Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header>
<soap:Body>
<ns9:AccountTransferRequest xmlns:ns9="http://at.dsh.cms.gov/exchange/1.0" xmlns:ns1="http://niem.gov/niem/structures/2.0" xmlns:ns10="http://niem.gov/niem/appinfo/2.1" xmlns:ns2="http://niem.gov/niem/niem-core/2.0" xmlns:ns3="http://at.dsh.cms.gov/extension/1.0" xmlns:ns4="http://hix.cms.gov/0.1/hix-core" xmlns:ns5="http://hix.cms.gov/0.1/hix-ee" xmlns:ns6="http://niem.gov/niem/domains/screening/2.1" xmlns:ns7="http://hix.cms.gov/0.1/hix-pm" xmlns:ns8="http://niem.gov/niem/appinfo/2.0">
<ns3:TransferHeader>
<ns3:TransferActivity>
<ns2:ActivityIdentification>
<ns2:IdentificationID>IDM4980d95XXXXXX58b9</ns2:IdentificationID>
</ns2:ActivityIdentification>
<ns2:ActivityDate>
<ns2:DateTime>2014-10-03T13:18:11</ns2:DateTime>
</ns2:ActivityDate>
<ns3:TransferActivityReferralQuantity>2</ns3:TransferActivityReferralQuantity>
<ns3:RecipientTransferActivityCode>Exchange</ns3:RecipientTransferActivityCode>
</ns3:TransferActivity>
</ns3:TransferHeader>
<ns5:InsuranceApplication>
<ns4:ApplicationCreation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:ActivityType">
<ns2:ActivityDate>
<ns2:Date>2014-09-30</ns2:Date>
</ns2:ActivityDate>
</ns4:ApplicationCreation>
<ns4:ApplicationSubmission xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:ActivityType">
<ns2:ActivityDate>
<ns2:Date>2014-09-30</ns2:Date>
</ns2:ActivityDate>
</ns4:ApplicationSubmission>
<ns5:InsuranceApplicationRequestingFinancialAssistanceIndicator>true</ns5:InsuranceApplicationRequestingFinancialAssistanceIndicator>
<ns5:InsuranceApplicationCoverageRenewalYearQuantity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns5:InsuranceApplicationRequestingMedicaidIndicator>false</ns5:InsuranceApplicationRequestingMedicaidIndicator>
<ns5:InsuranceApplicationTaxReturnAccessIndicator>true</ns5:InsuranceApplicationTaxReturnAccessIndicator>
</ns5:InsuranceApplication>
</ns9:AccountTransferRequest>
</soap:Body>
</soap:Envelope>
[no cookies]
Request Headers in JMETER:
Connection: keep-alive
Accept-Encoding: gzip,deflate
Content-Length: 24311
Content-Type: application/soap+xml;charset=UTF-8
我不确定这里还缺少什么。 我已经确保SOAPUI中的标头与我通过JMeter发送的标头匹配。
有人可以帮忙吗?