Contributions
Re: Check whether Mock response exists
Thanks Rao I have a groovy script to choose the mock service response as per this article: http://www.soapui.org/soap-mocking/creating-dynamic-mockservices.html and using the method in"5. Selecting the Response based on the request" Using: return "Simple Response" I want to check whether "Simple Response" exists as a mock response in this mock service. Thanks Steve1.5KViews0likes1CommentCheck whether Mock response exists
In a Mock Service operation the return statement identifies which Response is to be sent. return "Transaction Not Supported" If the value is held in a variable def tran = .... How can I check that the response identified in "tran" exists before attempting to send it? Thanks Steve1.5KViews0likes3CommentsSoapUI 4.5 escaped content changed to CDATA
I upgraded to 4.5 from 4.0.1 yesterday and the behaviour has changed. I really like the new XML colour scheme. We have a lot of XML that is generated with escaped values, like: <DataEnclosed><?xml version="1.0" ?> <VehiclePingReq schemaVersion="1" xmlns="http://webservices.domain.com.au/schema/vehicleping/2008/11/12/VehiclePing.xsd"><DealerCode>1234</DealerCode><VIN>XXXXX11A802405523</VIN></VehiclePingReq></DataEnclosed> And SoapUI has respected the format for many years. In version 4.5 the escaped format is being replaced by CDATA, like: <DataEnclosed><![CDATA[<?xml version="1.0" ?> <VehiclePingReq schemaVersion="2" xmlns="http://webservices.domain.com.au/schema/vehicleping/2011/08/22/VehiclePing.xsd"><DealerCode>1234</DealerCode><VIN>XXXXX56E401177489</VIN></VehiclePingReq>]]></DataEnclosed> This is even being changed in the Source Window and has corrupted some of my source messages. I realise that escaped formatting and CDATA are functionally equivalent to most XML processors, but this is not desireable behavoiur for us. Is this: - Intended? In which case I cannot use SoapUI 4.5. I've gone back to 4.0.1. How do I disable the upgrade reminder every time I start 4.0.1? - An Optional setting? How can I change it back? - A bug? When will a fix be released? Thanks Steve Is this: - Inten1.2KViews0likes0Comments