Click to See Complete Forum and Search --> : Consuming application will not compile!


joeller
January 3rd, 2007, 03:15 PM
Hi
I am new to Web services (and for that matter Managed C++). I built a c++ Web services using as a basis code from a C++ dll that was constructed for a module in an application. I built a Web service project with two Web service classes. It compiled. It ran in the debugger. I then built a windows forms application to test call the the Web Service. It compiled successfully and ran in the debugger. I then generated a Web Reference calling one of the Web service classes, (called FCD_Point). An FCD_Point.h file, a WebService.h file, a FCD_Point.wsdl, a FCD_Point.disco, and a results.discomap were sucessfully created by the ide, (Visual Studio 2005 standard edition). I then compiled the consuming application. All through the automatically created file I get

error C2059: syntax error 'public'. for one of the delegate functions, followed by another error for the same line stating
error C2027: use of undefined type 'FCD_Point::FCD_Point'

whne that line refers to a delegate for a function that does not make any reference to the constructors. In addition, there are several more errors referring to the automatically generated delegates. I tried to conduct a search on the web for any forums discussing this error but apparently no one has ever seen it, or if they did they were able to resolve the issue themselves. Has anyone seen such an error, and does anyone know what to do about. Other application for which I've generated Web references did not cause such an error, yet I don't see anything that I've done differently.

I would like to show the specific code but it is classified. I can answered questions that do not request classified information. Thank yuou for your help.

E.R. Joell
MCSD MCDBA

joeller
January 3rd, 2007, 03:45 PM
Turns out the cause of the errors were copy constructors that existed in the Web Service. When these were commented out and the service rebuilt and re-referenced, there were no issues. Now why should these be causing an error in the created web reference, when they were not even built as web methods?

E.R. Joell
MCSD MCDBA