Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I just know the serveice url and method name.
url:- http://localhost:51507/Service.svc"
name : GetMessage();

What I have tried:

without adding service reference in client application
Posted
Updated 9-Jun-17 20:06pm
v3

Maybe this will get you started:
How to: Create a Windows Communication Foundation Client[^]
web services - Create WCF endpoint configurations in the client app, in code? - Stack Overflow[^]
How to call a service without adding service reference at design time[^]

I think the Service Model Metadata Utility Tool (SvcUtil.exe) should be able to generate a configuration file for client use.
 
Share this answer
 
v2
When a WCF service exposes HTTP endpoints through basic HTTP bindings, it follows the classical SOAP convention of being SOAP web service, and excepts a SOAP envelope as HTTP request payload. If you don't want to pre-create client proxies and still want to invoke the request, you need to programmatically create the SOAP envelope and invoke an HTTP request using any of the HTTP client(e.g. System.Net.WebClient).
 
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