Reputation: 4318
Hi I have installed Soap UI...Like C, Java we will create some sample program. likewise i wanted to use some sample request and response..how to create a request and response without wsdl?
Upvotes: 39
Views: 78450
Reputation: 794
Upvotes: 72
Reputation: 13777
I wanted to send a SOAP request to a simple ASP.NET MVC Controller and the way I managed to do it using SoapUI was:
1) Create a SOAP request using any WSDL (no matter what WSDL you use, then you'll change it).
2) Open a request, change the URL and change the body of the request.
That way you can post a SOAP request with full control. Just in case it is useful, inside the controller I'm logging all the requests we receive using this in C#:
string requestData;
// Get raw request body
using (Stream receiveStream = Request.InputStream)
{
// Move to begining of input stream and read
receiveStream.Position = 0;
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8))
{
requestData = readStream.ReadToEnd();
}
}
Upvotes: 2
Reputation: 1855
Although you asked this question a few years back and hopefully you have been able to find an answer to your question.
Here is my answer to your question, hopefully not too late.
SoapUI is meant to test API, web service. To start testing it requires access to a WSDL. That said a project can be created without a WSDL. The only time i can think of i would not need a wsdl would be when whatever I am testing is not a web service and can be testing using either JDBC step or groovy step or a similar step except the test request step.
In one of your comments you asked if a wsdl is available, yes there are site where publicly accessible wsdls are available you can check out the below site for wsdls.
http://www.xmethods.net/ve2/index.po
http://www.webservicelist.com/
http://www.webservicex.net/WS/wscatlist.aspx
Hope you are having better luck with soapUI than you had with this question.
Upvotes: -1