Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

How does this compile? (or, SoapReceivers.Add(Uri, SoapService)?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Key - 24 Jun 2004 19:35 GMT
I've been trying to debug a TP -> RTM issue and I've gotten to the point
where I'm reviewing every line of code. One of these lines is particularly
strange -- it shouldn't compile, but does.

I'm calling the SoapReceivers.Add(Uri, SoapService) overload, which doesn't
exist. The docs state, and Reflector confirms (I hope), that the only
overloads for this method follow:

   public static void Add(EndpointReference, SoapReceiver);
   public static void Add(EndpointReference, Type);
   public static void Add(EndpointReference, SoapReceiver, bool);
   public static void Add(EndpointReference, Type, bool);

(Note the first parameter.)

SoapReceiver's base type is Object, so I'm not calling a superclass's
method, and the only similarity in Uri and EndpointReference's type
hierarchies is that Object is the root type.

What have I missed? This isn't related to the problem I'm trying to solve;
I'm really looking for someone to embarrass me and point out something
painfully obvious.

Thanks!
-jk
Curt Hagenlocher - 24 Jun 2004 19:58 GMT
> I'm calling the SoapReceivers.Add(Uri, SoapService) overload, which doesn't
> exist. The docs state, and Reflector confirms (I hope), that the only
[quoted text clipped - 8 lines]
>
> What have I missed?

You can construct an EndpointReference from a Uri.

--
Curt Hagenlocher
curth@motek.com
Jeff Key - 24 Jun 2004 20:11 GMT
Found it: Implicit type conversion from Uri -> EndpointReference.

-jk

> I've been trying to debug a TP -> RTM issue and I've gotten to the point
> where I'm reviewing every line of code. One of these lines is particularly
[quoted text clipped - 21 lines]
> Thanks!
> -jk

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.