Contributions
Generating a WSDL-first web service using SoapUI tool
Hi, i have made the following set up as mentioned in Soapui-Cookboook by rupert anderson,to generate a WSDL-first web serviceusing SoapUI tool , but on trying to 'Generate' i get anerror: Error message:: Unexpected argument: invoice_v1.wsdl WSDLToJava Error: org.apache.cxf.tools.common.toolspec.parser.BadUsageException: Unexpected argument: invoice_v1.wsdl org.apache.cxf.tools.common.ToolException: org.apache.cxf.tools.common.toolspec.parser.BadUsageException: Unexpected argument: invoice_v1.wsdl Set-Up in SOAPUI: 1. In SoapUI, go to Tools | Apache CXF, and when the Apache CXF Stubs window appears, click on the Tools button to bring up the SoapUI Preferences window. Here, browse to the location where you downloaded Apache CXF, select the bin directory, and then click on OK: 2. Next, we need to configure the generation options under the Basic tab. The main points are: WSDL location: For example, <chapter1 samples>/soap/invoicev1/wsdl/invoice_v1.wsdl. Output directory: This is where the generated source code will end up; for example; <chapter1 samples>/soap/invoicev1/src/main/java. Package Structure: This is for the generated source code; for example, ws.invoice.v1. Artifact Options: Only tick Server and Implementation. However, the client and Ant build file options are also available. We will be using SoapUI as our client and won’t require Ant. 3. To automatically compile our generated service code, under the Advanced tab, do the following: Tick Compile. Supply a Class Folder value for the resulting Java class files, for example, <chapter1 samples>/soap/invoicev1/target/classes. Tick Validate WSDL (optional) under the advanced tab to check the structure and get basic WS-I compliance checks on your WSDL. Note that the invoice_v1.wsdl should not produce any output with this option. Leave all other fields and checkboxes unchanged. 4. Under the Custom Args tab, enter –wsdlLocation invoice_v1.wsdl in Tool Args. This tells the web service code where to look for the WSDL file at runtime. Setting the value like this means that invoice_v1.wsdl is expected to be the root of the classes directory. More on this in the next section. 5. Now, we are ready to click on Generate3.9KViews0likes2CommentsUsing Context object in another test step within same test case.
Hi, I am trying data driven testing using Microsoft excel sheet(.xslx) and apache POI API for excel. After performing Data set up in 1 groovy test step using Sheet name 'sourceSheet' , iadd a reference to the sheet as a context property, in order for it to be accessible for other steps using: context.srcWkSheet = sourceSheet in the last groovy test step, when i try to access the workbook using the Sheet name referenced above using def wrkBook = context.srcWkSheet.getWorkbook() i get an error "cannot invoke methodgetWorkbook() on a null object. please help me with this.773Views0likes0Comments- 2.3KViews0likes0Comments
Complex Assertion parameterization
Hi, How do i assert the airport name where airport code is ANR from the response below.I do not want to use the index but a dynamic value. Say there are 10 records listed.How do i assert which belongs to airport code ANR <GetAirportInformationByCountryResult><![CDATA[<NewDataSet> <Table> <AirportCode>ANR</AirportCode> <CityOrAirportName>ANTWERP DEURNE</CityOrAirportName> <Country>Belgium</Country> <CountryAbbrviation>BE</CountryAbbrviation> <CountryCode>409</CountryCode> <GMTOffset>-1</GMTOffset> <RunwayLengthFeet>4839</RunwayLengthFeet> </Table> <Table> <AirportCode>GNE</AirportCode> <CityOrAirportName>GHENT</CityOrAirportName> <Country>Belgium</Country> <CountryAbbrviation>BE</CountryAbbrviation> <CountryCode>409</CountryCode> <GMTOffset>-1</GMTOffset> <RunwayLengthFeet>2789</RunwayLengthFeet> <RunwayElevationFeet>34</RunwayElevationFeet> I am using following code to get Airport name value: import com.eviware.soapui.support.XmlHolder def resXmlHolder= new XmlHolder(messageExchange.getResponseContentAsXml()) def cData= resXmlHolder.getNodeValue("//*:GetAirportInformationByCountryResult") def cDataXmlHolder= new XmlHolder(cData) def CityOrAirportName= cDataXmlHolder.getNodeValue("//CityOrAirportName") log.info (CityOrAirportName)Solved2.4KViews0likes5CommentsJDBC Request test Step problem
I am new to Soapui and i am trying a database connection in open source version 5.2.1. I have placed I have placed the driver jar files in \bin\ext folder.How do i create a JDBC request step? could somone please guide me on it. i don't see any option here or is it valid just for Pro version?9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentGetting Error after Submitting Request for AddGuest Request
Hi, I have made all set ups according to Chapter 2 in 'Web Service Testing with SOAPUI Book' by Charitha kanganamge and successfully hosted the Web Services. When i Ran the Request for AddGuest operation giving all parameters correctly,i am getting following response. <faultcode>soapenv:Server</faultcode> <faultstring>unknown</faultstring> <detail> <ns:GuestManagementServiceGuestManagementException xmlns:ns="http://sample.com/reservation/guest/types"> <GuestManagementException xsi:type="ax21:GuestManagementException" xmlns="http://sample.com/reservation/guest/types" xmlns:ax21="http://exception.reservation.sample.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ax21:message xsi:nil="true"/> </GuestManagementException> </ns:GuestManagementServiceGuestManagementException> </detail> </soapenv:Fault> Please help me with this9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes2CommentsFor How long is the Subscription of $149 Soapui NG PRO Training videos valid?
I want to buy SOAPUI NG PRO Training/Certification package.I was wonderingFor How long is the Subscription of $149 Soapui NG PRO Training videos valid? Please help me with this query9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes2Comments