Forum Discussion
- rishi_t9 years agoNew Contributor
Sorry if my question was unclear. I will try to make it more clear now.
Earlier I was using CURL to POST/GET, but recently our client have made some updation in their system and asked us to use SOAPUI for communication and provided us a .wsdl file. However in the sample XML which they provided, the soap:header was given empty. If I get a specimen as to how the soap:header to be coded to include the fuse and user credentials, I will be more than happy.
Recently, I tested XML communication using "SOAPUI" which of course does a good job.
Since I work in Linux and am more comfortable with CLI operation, I would like to know whether there is a command line facility using SOAPUI to POST an XML signal and get the result XML signal? My thought was that when we use soapui, it will produce an xml embedded with proper soap:header in it, but I was wrong and it was not in that way it works.
- nmrao9 years agoChampion Level 3Have you used testrunner.sh of SOAPUI_HOME/bin to execute the tests?
Do you have any assertions on the response to know if it fails or not?
It will record /log the request and response only in case of test failures.
If you run the test command line, there is a way to generate test result in junit style, but you need to write a ant's build script. Then you can use that the result to generate test reports in Html format.
All I wanted to convey here is that, in the result directory(which needs to passed to test runner or antscript), you should be able to see some .txt files with request and response where you will be able to find those details that you are looking for.
You can see the below thread
http://stackoverflow.com/questions/6648244/how-to-integrate-soapui-with-jenkins-hudson
Hope this helps.- rishi_t9 years agoNew Contributor
Thank you for such a detailed reply.
I have done the testrun successfully and Summary was:
SoapUI 5.2.1 TestCaseRunner Summary
-----------------------------
Time Taken: 14236ms
Total TestSuites: 0
Total TestCases: 1 (0 failed)
Total TestSteps: 1
Total Request Assertions: 3
Total Failed Assertions: 0
Total Exported Results: 1---------------------------------------------
However, I actually wanted:
- I have configured the authentication/credential etc. and a project was also created in soapUI.
- I have a request signal xml kept in /tmp/ folder of my system which is created dynamically during a particular process.
- There are three SOAPActions (checkstatus, finished, etc.) and the signal XML will also vary according to the SOAPAction.
- I want to POST this signal XML using command line to the Host for a particular SOAPAction.
- In return I should GET a response signal XML.
Please clarify whether I can achieve this using the command line operation. Once I configured a project in SoapUI (using GUI), I do not want to use the GUI further.
If so, kindly provide the command line to POST?
Related Content
- 12 months ago
Recent Discussions
- 2 days ago