Re: GoogleSearch.wsdl
"Ben O'Steen" <[email protected]> Thu, 17 Aug 2006 12:57:52 +0100 (BST)
| Newsgroups | gmane.comp.gnome.mono.documentation |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2006-08-17 at 10:09 +0100, Mariusz Mart wrote: > Hi! > > I have downloaded GoogleSearch.wsdl (about guide WebServices http://www.mono-project.com/Web_Services) > run "wsdl GoogleSearch.wsdl" > with result: > sled-marian:~/mono # wsdl GoogleSearch.wsdl > Mono Web Services Description Language Utility > Writing file 'GoogleSearchService.cs' > sled-marian:~/mono # > > then "mcs /target:library GoogleSearchService.cs" > with result: > > sled-marian:~/mono # mcs /target:library GoogleSearchService.cs > GoogleSearchService.cs(20,36): error CS0234: The type or namespace name `Services' does not exist in the namespace > `System.Web'. Are you missing an assembly reference? > GoogleSearchService.cs(16,2): error CS0234: The type or namespace name `Services' does not exist in the namespace > `System.Web'. Are you missing an assembly reference? > Compilation failed: 2 error(s), 0 warnings > sled-marian:~/mono # > > > What do I wrong? Well, I believe I can spot a two things wrong. The first thing is that the hash as indicated here: "sled-marian:~/mono >>> # <<< mcs " suggests you are running commands as the root user. This is not necessary and should be avoided. Please run as a normal user! The main problem as indicated by the errors you included should show you that the compiler cannot find the assemblies which contain the 'System.Web.Services' namespace. Essentially, you need to tell the compiler to reference them (on one line): [user] $ mcs /target:library -r:System.Web,System.Web.Services GoogleSearchService.cs This should seem to do nothing (eg no errors), but you will find it compiled a "GoogleSearchService.dll" in that directory, which you can then reference in your projects. I am guessing that you are trying to follow this: http://www.mono-project.com/Web_Services Yes, I believe that it is wrong at that point, and yes it could do with updating, but the rest of the tutorial is stable. Anyone with a wiki account fancy making the edits? Also, might I recommend playing with the Amazon Web services? Similar simple technique to use, but there are more interesting possibilities. Miguel has posted an excellent step-by-step guide here: http://tirania.org/blog/archive/2005/Nov-26.html Good luck. Ben O'Steen PS If anyone feels that this advice is wrong, please let me know. I am still learning too! > using mono v 1.1.13 > _______________________________________________ > Mono-docs-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-docs-list _______________________________________________ Mono-docs-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-docs-list