Property transfer version 5.7.2 not removing double quotes.
I am doing property transfer by using the setup script through sql. My request has something which should be in []. I have created the propert transfer like below For the Target i have given like below. $.dispositionIds In the setup script I am giving like below. String dispositionIds = rows.DISPOSTN_ID //Set Property value testRunner.testCase.setPropertyValue( "DISPOSTN_ID", dispositionIds ) After runng the script I am getting the value in double quotes "" like shown below. "dispositionIds":"[1282678]" ---But becasue of the double quotes, My request is thrownig an error saying invalid json. My Colleagesue have a differnt verison soap 5.6.0 and it is working fine for them.19Views1like1CommentOAuth 2.0 Authorization Code Grant problem
Hi there! We use SoapUI 5.7.0 and we have a problem with a code grant authorization flow. Buildin browser shows "The page could not be loaded" everytime when we try to get the app authorization form (using authorization uri parameter). We noticed that soap ui makes three requests at once: first, just GET request from authorization uri without any parameters, and then twice GET with parameters. In our case the app returns aresponce with http code 400 when we ask form without parameters and return 200 when with. Total: pushing GET ACCESS TOKEN call three requests and one of them wrong. Buildin browser show "The page could not be loaded" in this case. Is there anything we can do to fix this problem? Thanks a lot.48Views1like1CommentSecurity configuration for SOAP project using two way SSL with client certificate for auth
Hello Community, I am struggling with configuration of my SOAP project to use client certificate in two way SSL encryption tunnel. I tryied both these guides: -https://www.soapui.org/docs/soapui-projects/ws-security/ -https://www.soapui.org/docs/security-testing/ws-security-settings/ But unfortunatelly I cannot connect to the server. When I use CURL with cert and key it is working like a charm: curl --request GET --url https://XXXX/service1\?WSDL --cert cert.pem--key key.pem OR curl --request POST --url https://XXXX/service1 --cert cert.pem--key key.pem --header 'Content-Type: text/xml' --verbose -d @request.xml However when I create JKS trustore with both of them and I add it to SoapUI, according those guides, I am getting unauthorized response all the time. I tried it on Windows10 and Ubuntu22.04 with SoapUI 5.7.1 Could you please give me nudge or hint how should I configure the SoapUI project to authenticate using 2 way SSL? Thank you.611Views1like5CommentsApple Certificate Revoked for SoapUI
Hello, I've recently tried to install SoapUI 5.7 however gatekeeper is blocking the application from running stating that the "App's Authorization has been revoked" by Apple. This also appears in versions 5.6.1 and 5.6.0 that we've tested (although we haven't tested any earlier versions from that). What caused the revocation of the certificate by Apple?580Views1like0CommentsCan one explicitly stop the SOAPUI-Maven Plugin at the end of a module's build?
Referring to my other question (https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/Multiple-REST-mocks-on-same-port/m-p/242192😞 We are using thesoapui-maven-plugin to mock web services as well as REST services during our unit-tests (executed on a Jenkins build server). As we had to learn the soapui-maven-plugin only supports the mocking of a single REST service at a time. If your SOAP Project file contains multiple REST mocks then by default only the first REST service will be started, unless one specifies a particular service using the<mockService>specificServiceHere</mockService> configuration option. This works OK if one builds one module only. Since our project comprises multiple modules we need to enable/mock a different REST-service for each module's unit-tests. This, however, does not work (yet). While the REST services of the first module are being served properly, any subsequent module's REST service is not started, the corresponding requests always yield "404 Not found" only and hence our unit tests fail. Apparently the soapui-maven-plugin is NOT stopped and restarted with the next module's configuration but continues to run while the subsequent module is being built. It is thus still running the REST mocks for theprevious module and all calls to REST to service required for the testing of subsequent modules then fail. Is there a possibility to force-stop that plugin after the end of the tests of a module so that the plugin gets restarted for each module's build (with the proper settings for that module)? Hope I could make myself clear...272Views1like0CommentsWADL generation for JSON body in REST API calls
Hello all, We need to generate a WADL representation of a REST API call. This is part of an MFA authentication where we need to generate the Token using POST method and then use the token in a GET method call to get the data required. The POST method accepts only a JSON body. We have tested this SoapUI by giving a JSON body or by adding the "Query" parameters and ticking the 'Post Querystring' checkbox (when we tick the check box, the query parameters are converted to JSON body . Both these works. Now, we are using a BODS job to access the Rest API and for this we need to use a WADL file. We are not able to get the right representation for specifying the JSON body through a WADL. Even we extract it from SOAPUI, it only gives an empty body under "application/json" representation. Hence, could any of you experts let us know how to specify the JSON body in a WADL representation. The JSON body that we have is as follows { "client_id": "XXXXXXXXXXXXX", "client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX", "audience": "https://xxxxx.xxxx.xxxxxx/xxxxxxxxxx/", "grant_type": "client_credentials" } Regards, Mahesh1.2KViews1like0CommentsRequest is not available in MockService for script
I have prepared REST Mock Service. It contains PATH method request handling which has set "Script" as Dispatch. The foollowing script is set: import groovy.json.JsonSlurper def jsonInputString = mockRequest.getRequestContent() def cnt = new JsonSlurper().parseText(jsonInputString) log.info "test: " + cnt If the PATCH request is sent to the REST MockService, I get " Wed Apr 27 14:14:30 CEST 2022:ERROR:An error occurred [com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; java.lang.IllegalArgumentException: Text must not be null or empty], see error log for details I have noticed that it works for POST method What can I get request in the script ? "458Views1like0CommentsSoap call to code convertion
I've been struggeling with this for way to long now, I'm trying to have a service call working in PHP, that does work perfectly in SoapUI.... A service called "CheckIn@work" uses a what's called X.509 authentication. this users a p12-keystore with alias and password. The screen above is the setting I currently use for the request. The timestamp has just the (default?) value of 60 seconds. The keystore configuration is the follwoing: Now for the request configuration: Endpoint:https://services-sim.socialsecurity.be/SecurityTokenService/v1 The body is (and needs to be exacly) the follwoing: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header/> <soap:Body> <wst:RequestSecurityToken Context="abc" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"> <wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</wst:TokenType> <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType> <wst:Claims Dialect="http://schemas.xmlsoap.org/ws/2006/12/authorization/authclaims"> <auth:ClaimType Uri="urn:be:smals:expeditor:number" xmlns:auth="http://schemas.xmlsoap.org/ws/2006/12/authorization"> <auth:Value>[AN_UNIQUE_VALUE]</auth:Value> </auth:ClaimType> </wst:Claims> </wst:RequestSecurityToken> </soap:Body> </soap:Envelope> I then get a big response if the request worked. In my case, the request succeeds in SoapUI, but it does not in PHP. The WSDL data looks like the following: I have no idea what SoapUI does in the background of authentication with the X509 certificate. The whole "tutorial" on how the SouapUI is being set up, can be found herehttps://www.socialsecurity.be/site_nl/general/helpcentre/soa/overview.htm(dutch) I can share my PHP code, but I don't think that that is "allowed" here, so i'll leave that for now (except if someone would need or want to see it). Hoping for someone who can explain to me how that soapUI handles this request and how I can reproduce this in another (PHP) language... Kindest regards Robin Rosiers847Views1like0CommentsHow to use properties( either mock service or project) in resource path of mockService?
HI, Iwant to use custom properties of mock service or project as variable in mock service resource path. Any way to do it ? Test Case Endpoint:http://localhost:9100/v1/customers- it send authorization as header which contain token to be used by mock service. Mock service running on : 127.0.0.1:8181/api Mock Service End Point: /customer/101068577 /customer/101068577/loyalty/relationship I am able to transfer property from project level to mock service, but unable to use mock service property in resource path. Actual: Mock service unable to read value from mockService custom property. Expected: mock service resource url : /customer/${#mockService#Customer_ID_Default} /customer/${#mockService#Customer_ID_Default}/loyalty/relationship or /customer/${#Project#Customer_ID_Default} /customer/${#Project#Customer_ID_Default}/loyalty/relationship1.6KViews1like1CommentREST Mock Response as a test step
How can I make a REST Mock Response test step? I only see the option to add a SOAP Mock Response Test Step, is the same for REST not available? This is to use SOAPUI as a message exchange simulator. What I want to do: 1. Receive a REST message from my program [start a listener] - answer 200 OK 2. Send a REST message with the data to my program Do this synchronous-ly, don't advance if the message hasn't been received What I can't do: Setup SoapUI to receive the REST message in a test case (I can do it manually by starting a mock but that's not good enough) Any tips? Many thanks!1.1KViews1like0Comments