soapui

How to extract valuesof tags in a nested XML using groovy in SOAP UI

房东的猫 提交于 2019-12-12 03:39:24
问题 Below is a part of the response that I got from the SOAP request in SOAP UI. <a:Bundle> <a:Plans> <a:Quotes> <a:Quote> <a:StandardBenefits> <a:BenefitPeriod> <a:Description i:nil="true"/> <a:DisplayName i:nil="true"/> <a:Value>6 months</a:Value> </a:BenefitPeriod> <a:Coinsurance> <a:Description>50</a:Description> <a:DisplayName i:nil="true"/> <a:Value>50</a:Value> </a:Coinsurance> <a:OutOfPocket> <a:Description>5000</a:Description> <a:DisplayName i:nil="true"/> <a:Value>5000</a:Value> </a

spring-ws get username & password

空扰寡人 提交于 2019-12-12 03:30:54
问题 I've been learning spring-ws for little over a week and I've set up a simple web service. I'm testing it using soapui and specifying a username and password in the request properties. My web service has no security layer nor do I want to add one. I just need to pull the username and password out of the request to make requests to another service. I don't want to have to specify a username or password in my request body itself. All I want to do is retrieve the username and password from the

How to connect to sql DB from soapUI using connection string?

淺唱寂寞╮ 提交于 2019-12-12 02:45:48
问题 I would like to ask someone who already tried to connect to SQL database from soapUI opensource version. I have a test step JDBC request where I try to test and connect to my sql database. I use opensource version of soapUI. I read how it should be set up but still experience some problems. This is what I do: I installed java 8 and jdbc driver version 4.1. Added jdbc jar file to SoapUi/jre/bin folder as it is said in documentation for soapUI. This version of driver should work with Java 8.

Soap api calling with ksoap

让人想犯罪 __ 提交于 2019-12-12 02:25:26
问题 how to get proper response in android app. My api original response is display in soapUi software <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetSourcesResponse xmlns="..."> <GetSourcesResult> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet"

WSO2 ESB 4.9 - Send mediator causing errors

南笙酒味 提交于 2019-12-12 02:24:34
问题 I've been working on a resource over the last few days (I'm very new to WSO2 so I'm still pretty slow) and when I submit a request to it via SoapUI, it logs everything it should up to the <send/> mediator and then dumps the following errors: ERROR - Failed to submit the response {org.apache.synapse.transport.passthru.PassThroughHttpSender} java.lang.NullPointerException at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64) at org.apache

In SoapUi, how to extract column specific data form the json response?

此生再无相见时 提交于 2019-12-12 01:57:26
问题 I want to extract column specific data form the json response { "New England Schools__NE Schools$": { "dsData": "Account Id#%#Territory#%#District#%#Area#%#Region#%#objname#%#~ID~#%#~Lat-Lon Linked~#%#~Latitude~#%#~Longitude~#%#~Lat-Lon Zip~#%#School Name#%#Address#%#City#%#State#%#ZIP#%#ZIP4#%#School Type#%#Status#%#School Level#%#Count Free Lunch#%#Count Reduced Lunch#%#Total Lunch Pgm#%#Total Students#%#PreKindergarten#%#Kindergarten#%#Grade 1#%#Grade 2#%#Grade 3#%#Grade 4#%#Grade 5#%

how do i parse this XML in soapui

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 01:48:59
问题 First of all, i add a properties step with property name response, and i add transfer property step to transfer the response XML to response property in properties step. and here is the groovy Code i wrote to parse this XML and trying to retrieve the seesionId value.but im getting the seesionId null result. how do i do it? def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = groovyUtils.getXmlHolder("Properties#response") log.info "sessionId: " + holder

Soap UI ad an Node to Request (Groovy)

╄→гoц情女王★ 提交于 2019-12-12 01:47:57
问题 i got a Problem. So i got an WSDL like this: <node1> <subnode1>data</subnode1> <subnode2>data</subnode2> <subnode3>data</subnode3> <subnode4>data</subnode4> <!--Zero or more repetitions:--> <subnode5> <subsubnode1>data</subsubnode1> <subsubnode2>data</subsubnode2> <subsubnode3>data</subsubnode3> </subenode5> </node1> for Testing via SoapUI, the Problem is now, that the subnode5 can have one ore more reptions, it depends from the Database. Now my questions - how can isolved this to make the

Does SOAPUI have the concept of an unexpected message

拈花ヽ惹草 提交于 2019-12-12 01:35:38
问题 I have a test where I am sending a message in SOAPUI, usually this will trigger an message coming back asynchronously to my Mock Service so I have a Mock Response. Now I have a testcase where receiving any message to my mock service would be considered failure. Other tools I have used in the past had the concept of unexpected messages wherein receiving a message would fail the test. Anyone have any ideas on this? 回答1: Hm..You can add an assertion to Mock Response. There is an assertion

Java webservice NoClassDefFoundError

一笑奈何 提交于 2019-12-12 01:33:54
问题 I am generating a webservice stubusing this statement in java new TPFServiceStub(webserviceUrl); I have created a mock service in soap UI at 8088. The same URL I am passing in the webserviceUrl variable. All the dependent jars are placed in axis_home. I am getting this following error. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axiom/om/OMDataSource at com.arcot.csso.credchangereportsvc.dao.CIWebserviceDAO.getServiceObject Can you please help me out :) 回答1: You have