[Mono-list] compiling web service client

Massimiliano Sasso massimiliano.sasso at softeco.it
Tue Sep 27 06:48:53 EDT 2005


Hi all,

I know this is a basic question but I'm quite new with mono.

This is the matter:

I have a very simple web service that I want to access with a client running under mono, so I used the wsdl tool to generate my .cs code to access the web service:

> wsdl Calculator.wsdl

So far so good.

Once a try to compile my new generated code with the mcs compiler I get the following error message:

> mcs Calculator.cs

Calculator.cs(22,27): error CS0234: The type or namespace name `Services' does not exist in the namespace `System.Web'. Are you missing an assembly reference?
error CS0234: No such name or typespace System.Web.Services
error CS0234: No such name or typespace System.Web.Services.Protocols
Compilation failed: 3 error(s), 0 warnings

The same happens with the example wsdl you can find at http://www.mono-project.com/Web_Services

> wsdl GoogleSearch.wsdl
Mono Web Services Description Language Utility
Writing file 'GoogleSearchService.cs'

> 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?
error CS0234: No such name or typespace System.Web.Services
error CS0234: No such name or typespace System.Web.Services.Protocols
Compilation failed: 3 error(s), 0 warnings

The release I installed is the latest available in the download area (1.1.9) and I both compiled it on a system and installed from rpm(s) on another system, but the result is always the same.

What am I missing?

Thanks

Massi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20050927/906ccb91/attachment.html


More information about the Mono-list mailing list