soapui

Mock Rest-Service Response (json and xml), using soapui

邮差的信 提交于 2019-12-23 04:05:54
问题 I'm getting a confused, because I'm beginner in mocking rest-services. I'm using soapui to mock a rest-service. To do so, I need to write a script (OnRequest Script) in order to mock the responses to my request. So, I want to mock 2 types of response : application/json and application/xml. But I don't want to read any response-file. I just want to write the response in the script (OnRequest Script, in soapui). I've found a way to do it by reading a response file. In my case i don't need to

SoapUI request to WCF service fails using certificates

落花浮王杯 提交于 2019-12-23 03:00:16
问题 I have a custom binding like following for my WCF service which I am trying to call from the soapUI 4.5.1 <customBinding> <binding name="NewBinding0"> <transactionFlow /> <security authenticationMode="MutualCertificate" defaultAlgorithmSuite="Basic128" securityHeaderLayout="Lax" includeTimestamp="false" messageProtectionOrder="SignBeforeEncrypt" allowInsecureTransport="true" requireSignatureConfirmation="false" requireDerivedKeys="false" keyEntropyMode="ClientEntropy"

How to make jetty-maven-plugin deploy a war that is retrieved from a repository?

天涯浪子 提交于 2019-12-22 08:38:33
问题 I'm setting up an integration test module for a good sized web project. The integration test module is separated from the web project itself, and it has it's own pom. The idea is to use the maven-soapui-plugin to send requests and verify the response. Setting up the soapui-plugin is no hassle. However, I'm having trouble with figuring out how I can tell the jetty-maven-plugin to deploy a war from a remote repository. If I have understood correctly, the jetty-maven-plugin has a property called

Why am I receiving java.lang.NullPointerException rather than soap response?

不问归期 提交于 2019-12-22 07:00:02
问题 I am sending the following request to the server, when I copy the request and use the SOAPUI it shows the correct response, but when I use the following code to generate and send it, returns java.lang.NullPointerException on line 50, which is sm.writeTo(out); code: SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection = soapConnectionFactory.createConnection(); SOAPFactory soapFactory = SOAPFactory.newInstance(); MessageFactory factory =

How set timeout for one test step in soapui?

半世苍凉 提交于 2019-12-22 03:21:05
问题 I have create a test step in soapui. I need to set a long delay like 5 minutes for it. I mean that there is no delay between test steps, I have to wait a response only for one step. How can I do it? 回答1: Set the Socket Timeout to 300000 milliseconds. SoapUI Documentation 回答2: TestCase Options has a Socket timeout setting for that test. You cannot set this for only one step. 回答3: As other answers says it's not possible to set the socket timeout for a TestStep , however you can do the trick

WSDL/SOAP Test With soapui

六月ゝ 毕业季﹏ 提交于 2019-12-22 01:33:26
问题 I have tested my web services (wsdl/soap) with soapui. and i have the errors : http/log : error 400 BAD REQUEST. What can be the error please with my wsdl ? error/log : un Jun 05 14:10:37 CEST 2011:ERROR:javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'. javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'. at com

How to increase text size in SoapUI

纵然是瞬间 提交于 2019-12-22 01:12:41
问题 Using SoapUI v 3.6.1 on Windows 7 and the text is tiny. Didn't find an option to increase text. 回答1: Select File > Preferences (or hit Ctrl + Alt + P ) from menu and then pick Editor Settings group. Hit Select Font... next to Edtor Font and choose a different size/font face. Hit OK to confirm your changes. Any already opened editor window must be closed and then reopened in order to above mentioned changes to be applied. 回答2: Fixed the issue, I tried to right click on desktop shortcut which I

Is there a way to convert Json file to XML by using groovy script on soapUI?

柔情痞子 提交于 2019-12-22 01:09:44
问题 I need to convert Json file format into XML format, I've seen a lot of webpages that use this even in java I can see there are a lot of people who are capable of doing it but I can't find a way on groovy. I have a file like this one: { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A

Maven SoapUI plugin - how to execute 2 SoapUI test projects during Maven's lifecycle

流过昼夜 提交于 2019-12-21 22:48:14
问题 I have 2 different SoapUI test projects that I want to run during the build (I am using maven-soapui-plugin 3.6.1 and Maven 3 for that). Currently all I can do is to execute only 1 project (see my pom.xml file)... Suppose I want to execute 2 SoapUI test projects and also control their execution order... What is the correct syntax to do so ? My current pom.xml file : <plugin> <groupId>eviware</groupId> <artifactId>maven-soapui-plugin</artifactId> <version>3.6.1</version> <configuration>

soap ui generated code

南楼画角 提交于 2019-12-21 11:25:23
问题 I have a webservice I am trying to build a client for. I have the following wsdl: http://www.cmicdataservices.com/datacenter/service.asmx?wsdl It requires authentication. Looking at the WSDL description I see no method that takes an authentication object, nor username and passwords as arguments. Using Netbeans I have generated jax-ws sources for the WSDL. I however can not figure out what to do after that. Using soapui I can connect to the webservice and run all the methods. But once again, I