Contributions
How to return Status Code 500 from a MockResponse
I have a Mock Service, under that, are numerous Mock Responses The API I am emulating with SoapUI returns a HTTP Status 500 if I give it an invalid account to look up. So in SoapUI, I want to create a Mock Response that will return an HTTP Status 500, along with a message (the message from the actual host contains the detailed information about the invalid account). I've found a few posts out here telling me how to do that, but they must be for Soap Pro, because they do not work in Soap open Source. Any suggestions? Thanks in advance for your time.1.6KViews0likes1CommentRe: How to mock an HTTP Status with specific codes
Ok. Thanks for the post and information, that is very useful information. The client I am interfacing to, returns fault codes as if they were status codes. For example: a 200 is obviously good, but they will return different status codes, based on the quality of the response. So a 2xx means the data is good, but is expiring soon. A 2yy means the data is good, but has outstanding claims. A 2zz means the data is good, but is on hold (obviously, the xx, yy, and zz stand for numeric values, but I don't have them in front of me right now). Where most SOAP servers will return a data related status code inside of the data, this particular one ,decided to put their data related status codes as http status codes. I'll be the first to say I think that is bad programming practice, but that's the situation that I am dealing with. I was simply trying to make SOAP responses in Soap UI that mimick the data packets that will be coming from the vedor, so that I can put together good ETE testing of all of the conditions that we expect to get.725Views0likes0CommentsRe: How to mock an HTTP Status with specific codes
Yes, in the mock service, when I create a response, it allows me to create a normal response or a fault response. My question is, how do I specify which type of fault that is, there are dozens of fault types. According to the documentation, there is supposed to be an option in the fault window to specify which fault type you want. But it's not there. I am current on my install of SOAP UI.3.9KViews0likes4CommentsRe: How to mock an HTTP Status with specific codes
I don't have a script, but I found information online that said there is an option in the mock response panel where I can set the status code. I can't find that option, does that option not exist? Is a script the only way to do it?3.9KViews0likes6CommentsRe: How to mock an HTTP Status with specific codes
Thanks for answering, but I'm still unclear on exactly how to get the status into the response. for #1, where do I put it? for #2, what header? I've tried what I thought it should be, but it did not work, so I must have used the wrong spelling.4KViews0likes8CommentsHow to mock an HTTP Status with specific codes
The few posts that talk about this, must be for older versions of Soap UI, or perhaps, maybe Pro. I am on the open source v 5.5.0. I create a new mock response, I click the exclamation point at the top. That does create a sample fault packet. So far so good. But I want to set the HTTP Status to a specific code. Several posts indicate there are options on the left panel for setting http status code, but they are not there. I can't find any way to do it. I tried, in desperation, to just create an http status header, with every possible spelling I could think of for http status, but nothing works. How would I set a specific http status on this fault? For example, I need to emulate a 401, 403, 408, 409, 500, 503 and others.4.4KViews0likes10Comments