Ask a Question

Unable to load WCF Webservice

shussain
Not applicable

Unable to load WCF Webservice

I am trying to load the WCF Webservice http://localhost:8732/LoadTestDemoService.svc?wsdl document in Test complete 7.52.678.7. Every time I attempt to do it, I get the following error:

    "An error occurred while loading types for the web service method GetData."



The same service works fine in my Silverlight application. Here is my service code.



namespace SLApp.Web


{


[ServiceContract(Namespace = "")]


[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]


public class LoadTestDemoService


{


// Add more operations here and mark them with [OperationContract]


[OperationContract]


[WebGet]


public string GetData(int value)


{


return string.Format("You entered: {0}", value);


}


[OperationContract]


[WebGet]


public List<CaseItem> GetCases()


{


List<CaseItem> caseitems = new List<CaseItem>();


caseitems.Add(new CaseItem() { CaseId = 1, CaseName = "Case Name 1" });


caseitems.Add(new CaseItem() { CaseId = 2, CaseName = "Case Name 2" });


caseitems.Add(new CaseItem() { CaseId = 3, CaseName = "Case Name 3" });


caseitems.Add(new CaseItem() { CaseId = 4, CaseName = "Case Name 4" });


caseitems.Add(new CaseItem() { CaseId = 5, CaseName = "Case Name 5" });


return caseitems;


}


}


public class CaseItem


{


public int CaseId { get; set; }


public string CaseName { get; set; }


}


}



Help will be appriciated.





Thanks!

Anwar

3 REPLIES 3
AlexKaras
Champion Level 3

Hi Anwar,



Unfortunately, TestComplete supports ordinary .Net web services only.
Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
bobmarthin
New Contributor

Is there estimation when it should be supported?

 I'm using ver 8.0 and still get the same error.
AlexanderM
Staff


Hello Maxim,





No estimates at the moment, sorry.
-----

Alexander
Customer Care Manager
cancel
Showing results for 
Search instead for 
Did you mean: