Click here to Skip to main content
15,883,749 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a windows service application with C# with .Net 2.0, and added a web service as

http://localhost/postIncidents.ws.php?wsdl
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.

C#
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

http://192.168.1.1/postIncidents.ws.php?wsdl
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
Updated 7-May-13 8:16am
v2
Comments
Sergey Alexandrovich Kryukov 7-May-13 14:40pm    
Did you add the Web service, or the reference to an existing Web service?
—SA
2m_c@ 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)



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