Advertisement

06.17.2008 at 11:44PM PDT, ID: 23494238 | Points: 500
[x]
Attachment Details

Testing of Web Services

Asked by singhch in SOAP, C# Programming Language, .NET Framework 3.x versions

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.SocketTimeoutException: 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
[+][-]06.18.2008 at 10:16AM PDT, ID: 21814998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 03:24PM PDT, ID: 21817839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.18.2008 at 06:02PM PDT, ID: 21818532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628