Hi there,
I have been testing Web Services particularly WCF web services by creating a service reference in my Visual Studio test project. Thats all easy and good.
However, I would like to test this same web service thru this software called soapUI and for some reason, it is always timing out. the nearest clue that i get is "Error getting response; java.net.SocketTimeoutExce
ption: Read time out"
However when i use this same software to test another web service that i created which is not a WCF web service but a asmx web service, the soapUI is able to test the web service. I understand WCF is suppose to be interoperable so not sure why the soapUI cant invoke the web service.
The following is my simple web service
[ServiceContract]
public interface ITestServices
{
[OperationContract]
string GetTestData(string type);
}
public class TestServices : ITestServices
{
public string GetTestData(string type)
{
return "You have provided : " + type;
}
}
How can I test this web service without the use of the proxy class generated by svcutil.exe? Can I simple mock a soap request something like this
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope" xmlns:tem="
http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:GetTestData>
<!--Optional:-->
<tem:type>a test value</tem:type>
</tem:GetTestData>
</soap:Body>
</soap:Envelope>
and call it from a command line? is this possible? thanks
Start Free Trial