PLandhage
12 years agoNew Contributor
[Res]How do I generate a MD5 hash based on the values flds
I use SoapUI Pro 4.5.1. See my SOAP envelope below.
The problem is that I want SoapUI to genererate this MD5 hash value based on all fields value except <pxor:hash> ( i e <pxor:accountNumber>,<pxor:purchaseOperation>,<pxor:price>,<pxor:priceArgList>,<pxor:currency>,<pxor:vat>,<pxor:orderID>,<pxor:productNumber>,<pxor:description>,<pxor:clientIPAddress>,<pxor:clientIdentifier>,<pxor:additionalValues>,<pxor:externalID>,<pxor:returnUrl>,<pxor:view>,<pxor:agreementRef>,<pxor:cancelUrl>).
Example och md5 hash: <pxor:hash>7C86B6D4CCD98C159882658ABFD838E6</pxor:hash>
Is there a SoapUI Pro tool support for this ?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pxor="http://external.payex.com/PxOrder/">
<soapenv:Header/>
<soapenv:Body>
<pxor:Initialize8>
<pxor:accountNumber>11941141</pxor:accountNumber>
<pxor:purchaseOperation>AUTHORIZATION</pxor:purchaseOperation>
<pxor:price>1500</pxor:price>
<pxor:priceArgList xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:currency>SEK</pxor:currency>
<pxor:vat>0</pxor:vat>
<pxor:orderID>0</pxor:orderID>
<pxor:productNumber>4</pxor:productNumber>
<pxor:description>SoapUI Authorization</pxor:description>
<pxor:clientIPAddress>1.1.1.1</pxor:clientIPAddress>
<pxor:clientIdentifier xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:additionalValues xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:externalID xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:returnUrl></pxor:returnUrl>
<pxor:view>FACTORING</pxor:view>
<pxor:agreementRef xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:cancelUrl></pxor:cancelUrl>
<pxor:hash>7C86B6D4CCD98C159882658ABFD838E6</pxor:hash>
</pxor:Initialize8>
</soapenv:Body>
</soapenv:Envelope>
The problem is that I want SoapUI to genererate this MD5 hash value based on all fields value except <pxor:hash> ( i e <pxor:accountNumber>,<pxor:purchaseOperation>,<pxor:price>,<pxor:priceArgList>,<pxor:currency>,<pxor:vat>,<pxor:orderID>,<pxor:productNumber>,<pxor:description>,<pxor:clientIPAddress>,<pxor:clientIdentifier>,<pxor:additionalValues>,<pxor:externalID>,<pxor:returnUrl>,<pxor:view>,<pxor:agreementRef>,<pxor:cancelUrl>).
Example och md5 hash: <pxor:hash>7C86B6D4CCD98C159882658ABFD838E6</pxor:hash>
Is there a SoapUI Pro tool support for this ?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pxor="http://external.payex.com/PxOrder/">
<soapenv:Header/>
<soapenv:Body>
<pxor:Initialize8>
<pxor:accountNumber>11941141</pxor:accountNumber>
<pxor:purchaseOperation>AUTHORIZATION</pxor:purchaseOperation>
<pxor:price>1500</pxor:price>
<pxor:priceArgList xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:currency>SEK</pxor:currency>
<pxor:vat>0</pxor:vat>
<pxor:orderID>0</pxor:orderID>
<pxor:productNumber>4</pxor:productNumber>
<pxor:description>SoapUI Authorization</pxor:description>
<pxor:clientIPAddress>1.1.1.1</pxor:clientIPAddress>
<pxor:clientIdentifier xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:additionalValues xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:externalID xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:returnUrl></pxor:returnUrl>
<pxor:view>FACTORING</pxor:view>
<pxor:agreementRef xsi:nil="true" xmlns:xsi="xsi"/>
<pxor:cancelUrl></pxor:cancelUrl>
<pxor:hash>7C86B6D4CCD98C159882658ABFD838E6</pxor:hash>
</pxor:Initialize8>
</soapenv:Body>
</soapenv:Envelope>