Click here to Skip to main content
15,561,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Gurus,

I had referred link

http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/how-to-enable-rest-and-soap-both-on-the-same-wcf-service/[^]

To create a service that responds for both Soap and Rest request.

but it seems it is incomplete ...I am getting an error

Service 'TestApps.Service1' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.

can somebody help me in understanding ... what is missed here...

Regards,
Vikas
Posted

1 solution

HI Guys,

I could find the resolution by removing/adding
Factory="System.ServiceModel.Activation.WebServiceHostFactory

in *.svc markup, i am able call Soap/Rest service respectively.

can somebody tell me how can i use Factory programitically when calling Rest service.

Regards,
Vikas Mishra
 
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