Contributions
Re: Xquery in a groovy
Hi, I am Exactly looing for the same thing, I have a response XML, against which i have to execute a XQuery, and get the result value. The Link provided by you (www.mzquery.org), seems to be updated, and am not able the get the solution. Can you please provide me the code inside groovy script which worked for you. Thanks, Kumarswamy2.3KViews0likes0CommentsEnable/Disable WS-A addressing in SoapUI using groovy script step(Java/groovy script)
Hi, I have a groovy script step which is invoking the service to a endpoint. I have build this script to create a wrapper class to soapUI so that i can interact with the service without actually creating the SOAPStep is soapUI. The snippet of code looks like below: //endpointURL = my actual endpoint to which i have to invoke my request MessageFactory messageFactory = MessageFactory.newInstance(); String Request = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "Request") InputStream is = new ByteArrayInputStream(Request.getBytes()); SOAPMessage soapMessage = MessageFactory.newInstance().createMessage(null, is); SOAPMessage soapResponse = soapConnection.call(soapMessage, endpointURL); This works in most of the services, but for a specific service of a client, this above method throws error as: "This operation call is not supported.". When i try the request which is invoked using my groovy script, as a SOAP request step and trigger it, it works and get the expected response. Am able to re-produce the issue of groovy step in SOAP request step, when i Enable the WS-A addressing checkbox is SOAP step. So i believe in groovy step, the message is sent with WS-A addressing enabledwith headers. How can i disable this using the groovy step using java code.? Is the WS-A addressing really a issue or is it something to with the soapVersion/HttpVersion , which is depends on the way developer has implemented the service. Any pointers/solution to this would be helpful. Thank You, Kumarswamy1.7KViews0likes1CommentRe: JAR in [LoadUI Home]/ext Not Recognized by Script Runner
Hi, Am looking for a similar solution, I am facing issues with POI jars in Load UI, Which run absolutely fine from SOAP UI. but errors out from Load UI. Did you get a solution for your issue, if so please share me the work around. Thanks Kumarswamy9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes0CommentsLoadUI fails to invoke SoapUI Script with Apache POI jars
Hi , I have a SoapUI script where and reading an excel file and using its data for several activities, which works absolutely fine without any issues. Now i want to invoke the same script with LoadUI, while doing so am unable to to do so, as i get the java.lang.VerifyError with a WorkbookFactory.create() method used in my code. I tried placing the required updated jars inext folder of loadUI, but nothing works out, please suggest me a solution for this issue. Below is the snippet of the error code: java.lang.VerifyError: (class: org/apache/poi/openxml4j/opc/OPCPackage, method: create signature: (Ljava/io/File;)Lorg/apache/poi/openxml4j/opc/OPCPackage;) Incompatible type for getting or setting field at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:175) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:143) at org.apache.poi.ss.usermodel.WorkbookFactory$create.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at GenericLibraries.importDataSheet(Script1.groovy:52) at GenericLibraries$importDataSheet.call(Unknown Source) Regards, Kumarswamy870Views0likes0Comments