I was being ironic. It is easy (normally).
Anyway, I've found the error. If I create a new classlibrary project and add
a web reference to it, it works as it should. I can see the design time WS
object and the webmethods are presented nicely thru the WSDL definition.
the solution, the designtime object disappear. Still it exist but I can no
Current solution is therefor to let the namespace remain as it is. Not nice,
"Claus Konrad" <ClausKonrad@discussions.microsoft.com> wrote in message
news:4B0AC426-BC59-4A49-8F43-358051B77A60@microsoft.com...
> Sure it is; i've this week performed this very operation.
> Do note that by default the namespace of the proxy is called "localhost"
> or
> simular.
> So when acceing the proxy towards a WS, you go:
>
> localHost.SomeService proxy = new localhost.SomeService();
> proxy.Stuff();
>
> If not - send the project to me (see below).
>
> --
> rgds.
> /Claus Konrad
>
http://www.clauskonrad.net >
>
>
> "Preben Zacho" wrote:
>
>> If only it was ever so simple :)
>>
>> If I create a new classlibrary project and add the web reference as
>> usual,
>> no problem. The webservice name is available at design time.
>>
>> However, I have an existing solution (windows application) with 8
>> different
>> classlibrary projects within. If i add the web reference to the windows
>> application project, I can access the webservice name at design time. So
>> no
>> problem with that either. But if I do the exact same process in one of
>> the
>> classlibraries, the webservice name is NOT available at designtime inside
>> that project.
>>
>> So I figure there is some setup that I must do in the solution to make it
>> work, but have not figured it out yet.
>>
>> Regards
>>
>> PZ
>>
>> "Claus Konrad" <ClausKonrad@discussions.microsoft.com> wrote in message
>> news:50F32CE9-AB47-4E15-91FA-CFE1D9767AE4@microsoft.com...
>> > You consume the webservice (generate the proxy) quite traditionally the
>> > way
>> > you do in all other aspects.
>> > Just right-click and "Add WebService". VS will produce an app.config
>> > file
>> > for you that you should move to the hosting process, but basically
>> > there
>> > is
>> > no difference.
>> > --
>> > rgds.
>> > /Claus Konrad
>> >
>> >
>> > "Preben Zacho" wrote:
>> >
>> >> Anyone that has a link or description that simply as possible shows
>> >> how
>> >> to
>> >> add a web reference to a class library in C# and consuming it?
>> >>
>> >> TIA
>> >>
>> >> PZ
>> >>
>> >>
>> >>
>>
>>
>>