Contributions
Failed to update interface when updating wsdl definition
Hi. I am using SoapUI Open Source v5.6.0. When I update a wsdl, the error ‘Failed to update interface: [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException]’ is being returned. Looking at the error log: Thu Jan 11 09:19:26 EST 2024:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlInterfaceDefinition.load(WsdlInterfaceDefinition.java:52) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:62) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:34) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.cacheDefinition(AbstractDefinitionContext.java:245) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.access$400(AbstractDefinitionContext.java:47) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:218) at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46) at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131) at java.base/java.lang.Thread.run(Thread.java:835) Other people in my office using SoapUI are not having an issue with this wsdl. I am not sure if this is related, but the environment recently had its’ Tomcat version updated, and I was testing with this wsdl before the update. When I try to create a new request, I am just getting the envelope, header, body and endpoint name. None of the definition. When I use the ‘Recreate a default request from the schema’ icon, I am getting the same skeleton request. Any ideas? Thank you. Angie25Views1like0CommentsScript Assertion XPath: Is it possible to verify multiple tags and verify multiple fields
Hi soapUI Wizards, I have two questions: My response has an acceptedStatus object with two tags: <acceptedStatus> <acceptedDate>07/25/2022</acceptedDate> <medicareUtilization>Full</medicareUtilization> </acceptedStatus> Can I verify that the two tags are returned, spelled properly, and are in the right order. Is this possible with a XPath Query Script Assertion, or should I use a Groovy Script? I tried XPath Match, but that matches the entire response. Can I use that to match just a section of the response? Can I also verify multiple contents in a single XPath Query Script? In the same acceptedStatus object, now I want to verify the contents. Right now, I can check one value. Can I check two values in a single XPath Query Script Assertion? This is my XQuery Path script assertion: declare namespace wsse='http://docs.space.org/wss/2444/01/wss-wssecurity-secext.xsd'; declare namespace ec='http://www.w3.org/2001/10/xml-exc#'; declare namespace soap='http://www.w3.org/2003/05/soap-envelope'; declare namespace ns2='http://services.star/'; declare namespace ds='http://www.w3.org/xmldsig#'; declare namespace wsu='http://docs.space.org/wss/244/01/wss-wssecurity-utility.xsd'; //ns2:getAcceptRejectSubmissionsResponse/response[1]/listOfSubmissions[1]/submission[1]/acceptedStatus[1]/acceptedDate This returns the value of the acceptedDate. I've tried changing the namespace defintion, but without luck. Thank you for your help. Angie130Views0likes0CommentsReadyAPI Update - Moved from 3.30.0 to 3.49.0 - Project Issues
Hi. We were on ReadyAPI 3.30.0, and just loaded the 3.49.0 update. Was 3.49.0 supposed to overlay the existing 3.30.0? I now have two versions of ReadyAPI. The bigger problem is that the new version is not recognizing my projects. I would export, and import them, but I cannot get into 3.30.0. Any ideas? Thank you, AngieSolved6 months agoPlace ReadyAPI QuestionsReadyAPI Questions157Views0likes1CommentRe: getXmlHolder is generating a nullPointerException
Hi. I was using XmlSlurper, but I could not figure out how to update the request with my new values. I have an Excel spreadsheet that includes the name of the nodes (EX: issueTypeId) whose values I need to capture. I am able to pull the needed nodes from the response and save them as TestCase properties. The next step is to update a request with those values. I do not know the nodes in advance or how many, so I cannot use the regular soapUI property transfer method. I have XmlSlurper code that finds the nodes in the request, but then I am stuck. def holder = context.expand( '${SOAPRequest#Request}' ) def slurper=new XmlSlurper( false, false, false ) def resq = slurper.parseText( holder ) def dataCnt=0 resq.'**'.findAll { it.name() == nodeToUpdate } { it.text()=propToUse[dataCnt] dataCnt++ } I know this all sounds crazy. Any ideas? Thank you, Angie3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes1CommentRe: getXmlHolder is generating a nullPointerException
Hi. Sorry, my laptop was in the shop. Just it back today. 🙂 You are so right. This has nothing to do with security exception. I reworked that code to use XmlSlurper. But now, writing another Groovy script, I am getting the same error. The issue is with the getXmlHolder statement. The problem is with the Map being returned empty (null). I have never encountered this before. The request exists and is not large, only 140 lines. No special characters beyond $ and@. What should I be looking for? Any ideas how I can resolve this? def holder = groovyUtils.getXmlHolder( request ) The request does exist: INFO: request= 576040 PSRSTAR No Angie D xxxxx 01-2176 PRRB 16-0047 12/31/2017 xxxx No 51 DSH - Code 2 & 3 Eligible Days 11/24/2021 N NPR 06/01/2021 N/A 1, 2, 4, 6, 7, 9, 20, 21, 22 176 $16,341 No No xxxxxx No 44 DSH - Dual Eligible Days - Exhausted 11/24/2021 N NPR 06/01/2021 N/A 1, 2, 4, 6, 7, 9, 20, 21, 22 176 $25,192 No No xxxxxx No 124 DSH - Dual Eligible Part C Days 11/24/2021 N NPR 06/01/2021 N/A 1, 2, 4, 6, 7, 9, 20, 21, 22 176 $12,936 No No xxxxxx No 143 DSH - SSI Systemic Errors 11/24/2021 N NPR 06/01/2021 N/A 1, 2, 4, 6, 7, 9, 20, 21, 22 176 $98,043 No No 100000035 Team2 11/24/2021 11/24/2021 11/29/2021 11/29/2021 1 Scheduled 01/15/2022 No 07/22/2022 09/20/2022 11/19/2022 Dignity Health Kenton Fong 10901 GOLD CENTER DRIVE, SUITE 300RANCHO CORDOVACACALIFORNIA956709166313612brent.smith@seniorhealth.org Displayed error: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null See Error Log for details. From the Error.log: Wed Feb 02 23:51:11 EST 2022: ERROR: An error occurred in the script of the Groovy Script test step [Groovy Script - Value Set]: Wed Feb 02 23:51:11 EST 2022: ERROR: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null at org.codehaus.groovy.runtime.InvokerHelper.formatMap(InvokerHelper.java:715) at org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:655) at org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:152) at org.codehaus.groovy.runtime.DefaultGroovyMethods.toString(DefaultGroovyMethods.java:15381) at org.codehaus.groovy.runtime.StringGroovyMethods.plus(StringGroovyMethods.java:2121) at org.codehaus.groovy.runtime.dgm$1211.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:247) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139) at com.eviware.soapui.support.xml.Script102.overrideNode(Script102.groovy:179) at com.eviware.soapui.support.xml.Script102$overrideNode$0.callCurrent(Unknown Source) at com.eviware.soapui.support.xml.Script102.run(Script102.groovy:424) Take care, Angie3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes3CommentsgetXmlHolder is generating a nullPointerException
Hi Smartbears, The following code is not working in Ready API v3.9.1. The issue is with the groovyUtils.getXmlHolder statement, it is throwing an error. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = context.expand( '${SOAPRequest#Response}' ) def requestHolder = groovyUtils.getXmlHolder( holder ) The context.expand is retrieving the request's response (first few lines below): holder= <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> <wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <ds:Signature Id="SIG-8e536e7f-6d9c-406b-b84e-6f90e5d1db1f" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> Error displayed: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null See Error Log for details. From the Error Log: Wed Jan 26 12:00:31 EST 2022: ERROR: An error occurred in the script of the Groovy Script test step [Groovy Script - Value Retrieval]: Wed Jan 26 12:00:31 EST 2022: ERROR: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because the return value of "java.util.Map.entrySet()" is null This is a silly question, but could this error be related to my response having an WS-Security error? If it is related to the WS-Security error, is there anyway to get around this? I am working in our test environment. WS-Security error: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid Thank you, Angie1.3KViews0likes6CommentsHow can I set a Request's Attachment 'Part' property in a Groovy?
Hi. This is so silly. I am using Ready API. Using Groovy Script, I am adding a file as an attachment to a request. Everything is great, except the attachment 'Part' is missing its cid value. If you look at the request and click the 'Attachments' tab, the file is listed but the 'Part' column is empty. If I click into it, the cid is available in the drop-down. And the cid is in the request. How do I set the attachment's 'Part' property? Thank you, Angie400Views0likes0CommentsBSP Compliant
Hi. I am hoping this is an easy question. In soapUI Pro, part of ReadyAPI1, under Auth Security>>WS-Security Config>>Outgoing WS-Security Confirmation I have an x509 entry configured with 'Signature'. For 'Signature', there is a 'BSP Compliant' entry that we have enabled. In soapUI 5.5.0, the 'BSP Compliant' entry doesen't seen to exist. Does it exist in soapUI 5.5.0? My request is being returned but with 'A security error was encountered when verifying the message' error in soapUI 5.5.0, but works in soapUI Pro. If you're wondering, ReadAPI! is on a secure desktop that doesn't travel. I do basic work on my laptop using soapUI, then update the beast (aka secure desktop). My process worked well until I upgraded to Windows 10 and had to reload soapUI. Thank you, Angie635Views0likes0CommentsReady! API licensing Issue when installed on shared laptop
Hi. We have one Ready! API license. We are a small team and we are just getting into web services. We have the software and license loaded on a the team laptop. The team laptop is a backup laptop that we use when one of us has laptop issues or when we need to perform a specific task like generating documentation or performing WS testing. When I log into the team laptop using my credentials I have no problems using Ready! API or Soap UI NG. When other users log in to the team laptopandtry to use Ready! API they get the error message "No valid license found. Do you want to buy or install a license?". I appears that the license is for a specific user+device. Is that true? We would like each team member to use their own login on the team laptop when accessing Ready! API. Is that possible? Thank you, Angie8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes2Comments