Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day.

I'm Converting our webservice(asmx) to WCF, my problem is when I get the WSDL of WCF our application that is reading that WSDL is throwing me an error "the element 'http://tempuri.org/:GetData' is missing. but in the ASMX generated WSDL it works fine?

is there something i need to add in my configuration to solve this? is the generated WSDL of ASMX different from WSDL generated from WCF? how can i fix this?

been trying to find a solution for this since monday... your help will be appreciated greatly
Posted
Comments
David_Wimbley 25-Apr-13 22:20pm    
Have you added the reference to your wcf to your project as well? I believe if you run your bindings as BasicHttpBinding that will allow you to run your WCF in the same way as an ASP.Net web service (basically like legacy made if you will).

1 solution

I solved this issue. I hope this helps someone

i add the XMLSerializerFormat and it work for me..

C#
[ServiceContract]
[XmlSerializerFormat(Use = OperationFormatUse.Encoded, Style = OperationFormatStyle.Rpc)]
public interface ITimesheetService
{
    [OperationContract]
    string EchoMessage(string echoMessage);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900