Click here to Skip to main content
11,493,046 members (64,663 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#2.0 WebService
I have created a windows service application with C# with .Net 2.0, and added a web service as

It has the method "ReportIncident". I checked the windows service in local environment. It worked. Before I deploy it I added below code to get the particular url from a setting file.

shids_client.shidsWebServer.ReportIncident r = new shids_client.shidsWebServer.ReportIncident(); r.Url = Constant.readUrl(); r.CallReportIncident(time,LocalIPAddress(),type,line);

After I deployed, i added the url to my setting file as
After I check it, it didn't work. Following error was at my log : "Operation 'CallReportIncident' is not defined in the WSDL for this service"

Please help
Posted 7-May-13 8:20am
Edited 7-May-13 9:16am
(no name)6.3K
Sergey Alexandrovich Kryukov at 7-May-13 14:40pm
Did you add the Web service, or the reference to an existing Web service?
2m_c@ at 8-May-13 3:30am
added a existing web service.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 419
1 Maciej Los 286
2 F-ES Sitecore 224
3 KarstenK 210
4 CPallini 208
0 Sergey Alexandrovich Kryukov 10,132
1 OriginalGriff 8,630
2 Sascha Lefèvre 3,624
3 Maciej Los 3,392
4 Richard Deeming 2,500

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 7 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100