This is a discussion on ASP.net 2.0 Webservice and WCF within the ASP and ASP.NET Programming forums, part of the Web Development category; Can we call WCF service from asmx client...I dont know how to call WCF from asmx...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Can we call WCF service from asmx client...I dont know how to call WCF from asmx |
| Sponsored Links |
| |||
| We need to integrate the WCF in ASMX ... First thing we need to generate a class for WCF using wsdl.exe wsdl /n:Microsoft.ServiceModel.Samples /o:generatedClient.cs /urlkey:ServiceAddress http://localhost/servicemodelsamples/service.svc?wsdl By using the generated typed proxy, the client can access a given service endpoint by configuring the appropriate address. The client uses a configuration file (App.config) to specify the endpoint to communicate with. <appSettings> <add key="ServiceAddress" value="http://localhost/ServiceModelSamples/service.svc"/> </appSettings> The client implementation constructs an instance of the typed proxy to begin communicating with the service. // Create a client to the Service. using (Service client = new Service()) { // Call the Add service operation. double value1 = 100.00D; double value2 = 15.99D; double result = client.Add(value1, value2);
__________________ The MOSS Master of Solution Service |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webservice and its uses | poornima | ASP and ASP.NET Programming | 7 | 03-20-2008 09:49 PM |
| HTTPWebRequest in webservice | S.Vinothkumar | ASP and ASP.NET Programming | 4 | 09-26-2007 12:40 AM |
| Error in webservice | Sathish Kumar | C# Programming | 7 | 09-20-2007 04:55 AM |
| Webservice – Xml & Soap | Karpagarajan | XML and SOAP | 1 | 08-31-2007 11:45 PM |
| note on webservice | nssukumar | Java Programming | 1 | 03-12-2007 05:05 AM |