soapui

How to get a SOAP fault message to be WS-I compliance

I have this message <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>LOGIN-ERR:Incorrect password - user could not be logged in.</faultstring> </soapenv:Fault> </soapenv:Body> </soa...

SoapUI and JUnit integration

According to documentation we can remotely execute soapui tests from JUnit. But how to connect all jars properly and get access to SoapUITestCaseRunner class ? ...

Invoke a web service from MOCK (SOAPUI)

Hi All I am using SOAPUI Pro 3.5.1 and trying to make POC MOCK server. Here are the things i am looking, i will point my web service requests to mock server, depending on the match on one of the fields in the input mock response is populated which is good till this point. But if it didn't find a match i would like to invoke a original w...

Access the request XML in a SOAP UI mock response script

Hello, I have a mock response, which needs to return a value that was in the request. For example, this request can come in: <myReqest><myValue>123</myValue></myRequest> I already have a mockResponse: <myResponse><yourValue>${theValue}</yourValue></myResponse> I know how to set the value of ${theValue} through the context variable...

SOA Services Testing

What is the best way to test SOA services? Should I write my own tests using WCF or should I be using a testing framework such as SOAPUI. What are the limitations to each method and are there better tools? ...

Java webservice NoClassDefFoundError

Hi guys, 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.N...

Is there a way I can run all my SoapUI test suites at once, if they are under different projects?

On my SoapUI Workspace, I have several Projects. Each one of these may contain one or more test suites, with several test cases It is quite time consuming to expand each project, then open up the test suite, run it, open up the next etc. I do this for testing locally, then for testing again a test box Is there a way I can run through...

Using soapUI API to create a soapUI Mock object

I try to create a soap UI WSDL Mock Service using the soapUI API. But there seems to be no documentation of the source code. Has anyone done this before or something in that direction? ...

Soapui transfer problem; getting NoClassDefFoundError

I wrote a suite of tests using soapui and need to transfer it to another person to run when I leave. I wrote a script that helps me run all the tests on the command line and it works fine on my system. When we try to run it on his system however, we get a few exceptions and cannot find the difference between how it is run on my machine ...

WCF webservice: HTTP/1.1 400 Bad Request while sending large input

I am connecting to a WCF based webservice. For certain methods, the input contains a list of objects/structures. When the number of items in this list increases beyond a certain number, the service fails with HTTP/1.1 400 Bad Request when I try to test the same using SOAPUI. I tried changing the web.config file with the following changes...

SOAP request over HTTP delay

Hi, I am trying to send a SOAP request over HTTP for a web service through the following channels: Telnet (HP-UX) C client that opens a socket, writes XML and reads reasponse(HP-UX) Perl client that does the same thing as the C client above(HP-UX) Through SOAP UI application (http://www.soapui.org/)(Windows Machine) While SOAP UI ge...

SoapUI : is it possible to autogenerate the value from an element in a SOAP message ?

With SoapUI it's possible to send Soap XML message to a WCF service. I've the following SOAP message: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my="http://myserviceprovider"&gt; <soap:Header/> <soap:Body> <my:ProcessOrder> <my:Orders> <my:Order> <my:id>rando...

How to use API documentation

People generally say they use API documentation and code. I'm relatively okay in JAVA language,meaning I can write simple programs. Recently for the project am working on, I'm asked to work on SOAPUI tool and am reading SOAPUI API for writing code in Groovy. While doing this, I got this question. How to start using API documentation ( ...

how would one check a returned image-link with soapui testing?

I'm creating some tests for an ad server, and I want to test the validity / correctness of the returned ads. For this I would (from an assertion script) like to get the image link, and then retrieve the image and do some checks (width/height/format/does it exist, etc) Has someone done this before? I'm able to parse the link from the r...

SoapUI with Fiddler

I am trying to route my soapUI web service requests via fiddler, but it doesn't seems to work. I tried url's like http://localhost./myservice/myservice.asmx http://localhost:8888/myservice/myservice.asmx The later one though goes via fiddler, but it returns the request itself rather than the response from webservice. Any help? ...

Generating XML file from WSDL

I have a wsdl file with me and want to generate a sample XML file for request/response of an API. Using soapUI I managed to generate the file but it has question marks inside, like this: <cin:returnURL>?</cin:returnURL>. What I want is like this; <cin:returnURL>---returnURL---</cin:returnURL>. Is there any way to to do this using soapU...

SoapUI Api - programatically calling project service method?

Hey all, I am trying to call a service method defined in my project programmatically from a test step script. I am at a blocker and can't seem to figure how to set the request fields and make the call. The method will getMore() results of the call being tested. So I want to call this method while there are more results to fetch and store...

Create request with SOAP ui

Is it possible to create soap ui request with data ? right now I know how to create new request which gives you template what you should send to your webservice (which is read from you wsdl), is there a way so your requests fills with data based on type(ex: String,Integer, Date) from wsdl, from soap ui or any other test tool ? thank you ...

[SOAPUI] GROOVY How to trim a random number into a whole number

Hi there, I'm looking to trim a randomly generated number down to a whole number. I've tried various means but none seem to work. My latest attempt is as follows: def som = Math.random() * totalContacts log.info som som.toInteger() log.info som def cleaned = parseInt(som) log.info cleaned (I'm logging to the console after each ste...

SOAPUI: Can I set up multiple test case responses when I don't know the order the requests will come in

I am using SOAPUI to test an application. To initiate the test, I send a JMS message to the software from SOAPUI. There are multiple hooks in the code that are built to respond to this JMS message, including a few that respond by making web service requests to services I intend to mock with SOAPUI. I cannot predict the order these r...