soapui

Is it legal to have different SOAP namespaces/versions between the request and response?

孤街醉人 提交于 2019-12-04 20:21:45
THIRD EDIT: I now believe that this problem is due to a SOAP version mismatch (1.1 request, 1.2 response) masquerading as a namespace problem. Is it illegal to mix versions, or just bad style? Am I completely out of luck if I can't change my SOAP version or the service's? SECOND EDIT: Clarified error message, and tried to reduce "tl;dr"-ness. EDIT: [Link deleted, not related] Using soapUI, I'm sending a request that starts with: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ... and getting a response that starts with: <soap:Envelope xmlns:soap="http://www.w3.org

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

无人久伴 提交于 2019-12-04 19:52:01
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> <projectFile>${project.basedir}\src\test\resources\soapui\Web-Service-automatic-testing-soapui-project.xml<

Groovy to validate the list of node values with the values stored in a property step

我的未来我决定 提交于 2019-12-04 19:16:00
Properties Screenshot Response Snippet <tns:TAResponse xmlns:tns="http://webconnectivity.co.uk/"> <tns:SessionToken>84hjfutryh47849dkdhg9493493=</tns:SessionToken> <tns:PartyId>1234</tns:PartyId> <tns:ResponseType></tns:ResponseType> <tns:MessageUUId>12341F17-ABC9-3E99-1D12-B8289POO2107</tns:MessageUUId> <tns:Matches> <tns:IntegrationServiceMatch> <tns:InternalReference>2066856</tns:InternalReference> <tns:ErrorsAndWarnings> <tns:IntegrationServiceErrorCode> <tns:ErrorCode>W000026</tns:ErrorCode> <tns:Description>Settlement Date not within tolerance</tns:Description> </tns

KSOAP2 for Android gives

让人想犯罪 __ 提交于 2019-12-04 16:39:15
I'm trying to access a web service whose WSDL is at http://srilanka.lk:9080/services/CropServiceProxy?wsdl . Using SoapUI I sent a request and successfully got a response. Then using KSoap2 for Android I tried to get a response. But all I get is a SoapFault Error. The code is as follows. String NAMESPACE = "http://schemas.icta.lk/xsd/crop/handler/v1"; String URL = "http://www.srilanka.lk:9080/services/CropServiceProxy.CropServiceProxyHttpSoap12Endpoint"; String method_name = "getCropDataList"; String SOAP_ACTION = method_name; SoapObject request = new SoapObject(NAMESPACE, method_name); String

SoapUI change endpoint address

烈酒焚心 提交于 2019-12-04 16:13:05
问题 I'd like to change the endpoint address, but it's giving me defined values, I mean, only one value "/" . I tried writing there, but it did not work - it is not editable. How can I change it? 回答1: Look at the request window and expand the select box with the endpoint address. You should see something like this: / [edit current...] [add new endpoint...] [delete current] You click on [edit current...] and you can change the value. Here is an example using some available web service from

Attaching file in SoapUI with groovy

寵の児 提交于 2019-12-04 12:37:16
问题 I'm creating some tests in SoapUI. SOAP request, that i want to test has attachment. When I'm setting it manualy, everything is ok: But in my case, i need to set attachment dynamically. I'm trying to made it by properties to hold file path, and groovy script to set attachment. but it's not work at all: // get request def request = testRunner.testCase.getTestStepByName( "UploadRoutingCodes" ).testRequest // clear existing attachments for( a in request.attachments ) { request.removeAttachment(

How to make SoapUI json request work with german umlauts?

醉酒当歌 提交于 2019-12-04 12:12:09
We use SoapUI for many interfaces in our team project. We came across a problem with german special signs, called umlauts. When sending a POST request with Json body and a german umlaut, the we get com.fasterxml.jackson.databind.JsonMappingException . It cannot be parsed with com.fasterxml.jackson.databind.ObjectMapper . But when sending the same request using POSTMAN, then it works like a charm. We use @Consumes({MediaType.APPLICATION_JSON + "; charset=utf-8"}) annotations and Content-Type: application/json; charset=utf-8 header. But still no effect. Has anyone ever came across such a problem

SoapUI insert xml from file in soap request

北城以北 提交于 2019-12-04 11:50:12
Does anyboday know if it is possible to insert xml from local file in a soap request? and how to? What I input in the editor window <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <sendXml> <arg0>file:MyXml.xml</arg2> </sendXml> </soapenv:Body> </soapenv:Envelope> What I expect in the actuall soap message:- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <sendXml> <arg0><MyXml>Info</MyXml></arg2> </sendXml> </soapenv:Body> </soapenv:Envelope> You can use the context. Put

Creating script library in SoapUI free version

久未见 提交于 2019-12-04 11:48:11
问题 I am new in SoapUI and groovy scripting I would like to create a repository of groovy scripts that can be reused at various test steps I am using SoapUI Free version and following is the structure of my SoapUI Project Project |-TestSuite | |-TestCase | |-TestSteps | |-LocalScript (Groovy TestStep to reuse library scripts) | |-OtherTestStep (Run TestCase TestStep) |-ScriptLibrary |-TestCase |-TestSteps |-GroovyScriptStep1 (Contain a class for commonly used functions) |-GroovyScriptStep2

zend soap server response set custom ns1 namespace

心不动则不痛 提交于 2019-12-04 10:07:46
I am using Zend_Soap_Server (WSDL mode) for outputting an xml response to the client calls. However, i want to set a custom name for the ns1 namespace in the response. I noticed that the namespace in the response is set by default like: ' ns1:getDoubleResponse ' where ' getDouble ' is the server method being called. Here is my controller and SOAP server setup: class TestController extends Zend_Controller_Action { public function testAction() { // diable laoyouts and renderers $this->getHelper ( 'viewRenderer' )->setNoRender ( true ); $server = new Zend_Soap_Server ('http://example.com/public