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 / December 2004

Tip: Looking for answers? Try searching our database.

WSE2.0 SP2 bug in the SoapReceivers.Receiver(EndpointReference)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roman Kiss [MVP] - 13 Dec 2004 04:56 GMT
SP2 changed the key for the _receivers hashtable and the method Receiver has
been forgot to update it.
The result is that there is no "direct way" to get a registered object by
the EndpoindReference from the Receivers.

Roman
Craig Neuwirt - 14 Dec 2004 22:07 GMT
Hello Roman,

  I am about to incorporate WSE2 SP2 and I was wondering if you happen to
know of any other changes/bugs in SP2 that conflict with SP1.

thanks,
 Craig Neuwirt

> SP2 changed the key for the _receivers hashtable and the method Receiver has
> been forgot to update it.
> The result is that there is no "direct way" to get a registered object by
> the EndpoindReference from the Receivers.
>
> Roman
Roman Kiss [MVP] - 17 Dec 2004 01:07 GMT
Hi Craig,

The following is the code snippet of the
SoapReceivers.Receiver(EndpointReference) bug workaround

private object GetReceiver(EndpointReference epr)
{
   BindingFlags binding = BindingFlags.Static | BindingFlags.NonPublic;
   Type type = typeof(SoapReceivers);
   Hashtable _receivers =type.GetField("_receivers",
binding).GetValue(SoapReceivers.SyncRoot) as Hashtable;
   Hashtable _channels =type.GetField("_channels",
binding).GetValue(SoapReceivers.SyncRoot) as Hashtable;
   lock(SoapReceivers.SyncRoot)
  {
       if(_channels.Contains(epr))
      {
         ISoapInputChannel channel = _channels[_endpoint] as
ISoapInputChannel;
         return = _receivers[channel];
       }
   }
   return null;
}

HTH

Roman

> Hello Roman,
>
[quoted text clipped - 11 lines]
>>
>> Roman
Craig Neuwirt - 20 Dec 2004 16:04 GMT
Thanks for the workaround.

craig

> Hi Craig,
>
[quoted text clipped - 40 lines]
> >>
> >> Roman

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.