How 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.6KViews0likes10CommentsError of type Dispatch exception Occured while running the script in SOAP UI Mocking
Hi Team, I am facing an issue while trying to execute the java script in SOAP UI Mocking.I am getting an error stating "com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; org.mozilla.javascript.EcmaError: ReferenceError: "alert" is not defined".Kindly provide your inputs to resolve the issue. Thanks, Praveen771Views0likes0CommentsMock (REST) service, as a (mostly) passthrough
I'd like to create a Mock service that mostly acts as a pass-through to a real service that we use, but be able to quickly make one particular request fail in a particular way, so that I can address a particular case we've seen. Anybody have advice or example script on the simplest way to simply pass an incoming request & response through a mock operation? (Similar desire for a different use case, from this StackOverflow question, BTW: https://stackoverflow.com/questions/36041434/soapui-create-mock-service-with-pass-through-behavior-for-selected-methods )Solved2.9KViews0likes6CommentsHow to simulate an asynchronous web service with mock services in soapUI
I'm trying to simulate an asynchronous service. The service must send an ack response and then after some time invoke a callback service. I have been trying different scripts based on some post thai I have found using testcase to invoke the callback service, but I haven't been able to get that the service sends the response before the invokation of the callback service. Does it exits a way to run a test case and then send a response without wait that the test case finishes? Thank you very muchSolved11KViews0likes7CommentsService mocking - extra line in the end of the wsdl
Hello, I'm trying to use the service mocking functionality: https://www.soapui.org/soap-mocking/service-mocking-overview.html But SoapUI adds an extra line in the end of the wsdl of my mocked services. I doubled checked and the original wsdl is fine. I was wondering if anyone has any clues. $ java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) WSDL http://search.webofknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl Thanks.Solved1.6KViews0likes2CommentsHow to create JMS Mock in SOAP UI version 5.2.1?
Hi, I am using SOAP UI (free) 5.2.1 edition and I want to create a mock service which reads from a JMS queue and sends some xml message back. There are some posts online about this but most are about older versions of SOAP UI. Can someone help me with this? (this has some groovy script which just checks in the queue but still no use to me https://www.soapui.org/jms/working-with-jms-messages.html) Christiaan https://community.smartbear.com/t5/SoapUI-Open-Source/Mock-services-over-JMS/m-p/11425#U11425873Views0likes0Comments