Response XML tab encoding
Hi, Ive got some troubles with readyAPI not correctly encoding responses in XML tab. Dont know if its some setting I have, but on similar requests Im getting different results in response XML tab. First of all I cloned whole SOAP test case (old one) and replaced old services with new ones. Here is one example of what Im dealing with. In old test case Im still getting same result in response xml tab (no matter how I run it): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring> APP-002 : Chyba při zpracování, duplicitní údaj v požadavku (AgendaZadostId='b1e43723-54f7-447e-8d62-ed1ab98d24d7'). <!--ISZRZadostId=b1e43723-54f7-447e-8d62-ed1ab98d24d7--> </faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <!--SERVER: TP-ISZR1APPO101--> <!--CERTIFICATEID: [3b:c6:01:57:00:02:00:00:0e:3b]--> <!--UUID: [78004a1c-6a38-1416-9628-1af38a530000], RAW:[1C4A0078386A161496281AF38A530000]--> <!--TotalTime: 00:00:00.0781195, in ms: 78.1195--> <!--DbTime (all in ms) - total: 46.8883, external: 46.8883, internal: 0, extCommit 0, intCommit 0, CWeb = 15, CWin = 0--> <!--WinService (all in ms) - total: 0, ZR: 0--> <!--Remoting: DIFF: 0 ; total: 0, winservice: 0--> <!--CodeTime: 31.2312 ; celkem: 78.1195, Proc: 39.9787505040355--> <!--OMO: 15.6112--> If I run my cloned test case with new services in test runner I get: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>APP-002 : Chyba při zpracování, duplicitní údaj v požadavku (AgendaZadostId='02de5978-035e-4d5f-b89e-da520085aba9').<!--ISZRZadostId=c125d058-6a2f-1416-9927-173b688b1000--> </faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <!-- SERVER: TP-ISZR1APPO101 --><!-- CERTIFICATEID: [3b:c6:01:57:00:02:00:00:0e:3b] --><!-- UUID: [4ab6460c-6a32-1416-9927-1cc57fd37000], RAW:[0C46B64A326A161499271CC57FD37000] --><!-- TotalTime: 00:00:00.0468721, in ms: 46.8721 --><!-- DbTime (all in ms) - total: 31.2513, external: 31.2513, internal: 0, extCommit 0, intCommit 0, CWeb = 15, CWin = 0 --><!-- WinService (all in ms) - total: 0, ZR: 0 --><!-- Remoting: DIFF: 0 ; total: 0, winservice: 0 --><!-- CodeTime: 15.6208 ; celkem: 46.8721, Proc: 33.3264351287866 --><!-- OMO: 0 --> And if I run this specific test step individually I also get correct response (as the old one): <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring> APP-002 : Chyba při zpracování, duplicitní údaj v požadavku (AgendaZadostId='02de5978-035e-4d5f-b89e-da520085aba9'). <!--ISZRZadostId=c125d058-6a2f-1416-9927-173b688b1000--> </faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> <!--SERVER: TP-ISZR1APPO101--> <!--CERTIFICATEID: [3b:c6:01:57:00:02:00:00:0e:3b]--> <!--UUID: [5798b974-6a5d-1416-9461-1780ea3fd000], RAW:[74B998575D6A161494611780EA3FD000]--> <!--TotalTime: 00:00:00.2499951, in ms: 249.9951--> <!--DbTime (all in ms) - total: 109.3706, external: 109.3706, internal: 0, extCommit 0, intCommit 0, CWeb = 15, CWin = 0--> <!--WinService (all in ms) - total: 0, ZR: 0--> <!--Remoting: DIFF: 0 ; total: 0, winservice: 0--> <!--CodeTime: 140.6245 ; celkem: 249.9951, Proc: 56.2509025176893--> <!--OMO: 124.9964--> Any ideas where could be the problem? As you can see the response isn't formatted as well - when I do format it after test run, everything fixes. But I don't want to do that manually, because I also need to export these responses for customer reports. Thanks for your help, M25Views0likes0CommentsIn Ready API Tool - Not able to Add sections in Request -> Form (Tab)
I have added a new field in the API request but not able to add the new feild details in the Request -> Form (Tab) all the sections are disabled as per the screen shot. Can someone help me on how to add the new section to add the new fields in the Request -> Form (Tab)? Also, in the API request View Type -> All is selected from dropdown but still the data is viewed as clutter sections and feild details not able to see section and fields in the proper form (as per attached screen print) . How to resolve this issue?10Views0likes2CommentsGroovy script for dynamic response in Readyapi
Our scope of need is to get a dynamic response if the user hits the API request incorrectly and they need to get different response. I have created in readyapi rest, soap, and jdbc protocols with static responses when the user wants to access the response, but when the user requests with payload incorrectly example ( wrong I'd -xxxxx) , they receive the same response from readyAPI. I would like to create script to handle dynamic response; could you please share an example?Solved178Views0likes3CommentsSOAP Tests aren't running after updating ReadyAPI
Hey guys, After updating from ReadyAPI 3.43 to 3.49 my SOAP tests no longer work. I was able to narrow down the problem to the outgoing WSS. It looks as if the Basic(Bultin) authentication method requires an outgoing WSS, otherwise ws-security policies do not work. After adding outgoing WSS the tests are working. Attached is the error message: HTTP/1.1 500 500 Date: Thu, 30 Nov 2023 14:05:02 GMT Server: Apache Strict-Transport-Security: max-age=31536000 Content-Type: text/xml;charset=UTF-8 X-Content-Type-Options: nosniff X-Frame-Options: sameorigin Connection: close Transfer-Encoding: chunked <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>These policy alternatives can not be satisfied: {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}UsernameToken {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}HashPassword</faultstring></soap:Fault></soap:Body></soap:Envelope> Why is it required to add an WSS in this version, when it wasn't necessary in version 3.43? Is there a way to circumvent this WSS requirement?131Views0likes3CommentsHow to disable "autocorrect/autofill" on SOAP requests
Using ReadyAPI to do a data driven test against a SOAP API. On each iteration, putting XML in the values for a properties test step. This is so that we can have some tests with missing elements, or other structural options. Using a placeholder in the SOAP request to grab those property values (see image). Whenever I save the project, ReadyAPI goes into my request, sees missing elements (because the placeholder puts them there during runtime) and "helps" me by shoving empty element tags in there for schema compliance. Next time I run the test, it fails because of extra tags... I have to remember to go into the request and delete the extra tags. One day I may forget and raise an embarrassing defect. Main Question: Is there a way to disable this "help" that keeps making things more complicated? (please support negative test cases - they're critical for robust testing) Thanks72Views0likes0CommentsInvalid User Name and/or Password
Hello After upgrading to 3.47 I was receiving an authorization error message, so I uninstalled 3.47 and went back to 3.44. Now 3.44 is receiving the same error message. So I upgraded to 3.49 and am still seeing the same error. I am just wondering if anyone knows of or has a configuration solution that I can use. I am a functional person running the SOAP UI request to test the response values received. I am logging into Smart Bear as myself and use test users to access the test environment. This was working fine until 3.47 and now it seems 3.44 is now broken and even 3.49. I have no idea of what to look for to figure out what the issue is. Other workmates can access the test environment using the SOAP UI tools they have installed on their laptops and the same test users I am attempting to use. <faultcode>SOAP-ENV:Client.authenticationError</faultcode> <faultstring>invalid username or password</faultstring>292Views1like5CommentsThe API runs well in ReadyAPI, but it's not working properly on the website!
Hi there, I've got SOAP XML working perfectly in ReadyAPI, but I'm facing some trouble in Postman, and I think it might have to do with headers. Could you please give me some advice? If it runs well in Postman, it could potentially solve my NBA picks website issues. Thanks!Solved233Views0likes1CommentUsing smart card / CAC certificate with ReadyAPI
As of this morning, I am trying to figure out if its possible to use a CAC/Smart card certificate device with ReadyAPI. The intent would be to sign via WSS-Configuration any outgoing SOAP requests. Current work flow is we utilize a .p12 file for a test user, and set that up in WSS-Config with all of the necessary parts and set it to the endpoints we are testing. I am not sure how to achieve that same level of testing with a Smart Card. Any/all insight would be much appreciated!Solved364Views1like3Comments