Forum Discussion

KrotAZ's avatar
12 years ago

SOAPUI Mockup Field validation

Hi there.

I'm newbie to the mockup functionality of SOAPUI.

I've a doubt.

Lets imagine this SOAP input

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:anyns="http://www.anynsserviceX.NET/">
<soap:Header/>
<soap:Body>
<anyns:Input>
<anyns:Name>ARS</anyns:Name>
<anyns:LastName>ARS</anyns:LastName>
<anyns:BirthDate>ARS</anyns:BirthDate>
<anyns:IdNumber>ARS</anyns:IdNumber>
</anyns:Input>
</soap:Body>
</soap:Envelope>


I need to send "answer1" (consider answer1 as an specific answer) when fields "Name, LastName and BirthDate" are in the request and send "answer2" when field "IdNumber" is sent.

I've read the soap ui docs and Gilbert Techblog but I think soapui it's not what I need and Gilbert Techblog solution is too much for a simple "field validation". any other ideas? am a I making the correct search?

Thanks in advance