I like to serve a default response form stubby4j for a SOAP request with the same value I am receiving in request.
post: "[\\s\\S]*param1.([^<]+)[\\s\\S]*param2.([0-9]+)[\\s\\S]*param3.([^<]+)[\\s\\S]*param4.([^<]+)[\\s\\S]*"
Now the problem is, I can't ensure the sequence of input parameters coming in the request. So there is a chance that param2 comes first.
How can we handle this?
I really dint need it. I noticed that requests coming from the same client maintains the sequence of input field. So I need not to worry to compare or capture them with different patterns.
However due to some limitations of stubby4j, I have made my own utility and switched to stubby-db now.