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 / August 2005

Tip: Looking for answers? Try searching our database.

AfterSerialize firing twice??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tina - 31 Aug 2005 01:51 GMT
We have a web service that's been returning a SoapException stating that 'Object reference not set to an instance of an object.'. Unfortunately, it's only doing it in one particular environment.  We set up a SoapExtension to trace the messages, ala information at this article (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conalteringsoapmessageusingsoapextensions.asp
) at MSDN.  That article shows how to check the message at each of its message processing stages (before/after serialiization/deserialization).

To my surprise, the AfterSerialize stage is showing up twice in that log.  In the first invocation, my response looks good.  In the second invocation, I get the message 'Object reference not set to an instance of an object.', which seems to be thrown in Microsoft.Web.Services.WebServicesExtension.AfterSerializeServer(SoapMessage message).  

What's causing that second invocation?  And why does it only seem to occur over that box?

Conditions: WSE 1.0.3057.0, web service invoked from behind a firewall, over HTTPS, OS WS2003, IIS

From http://www.developmentnow.com/g/28_0_0_0_0_0/dotnet-framework-webservices-enhanc
ements.ht

Tina Coleman - 31 Aug 2005 18:14 GMT
It seems as if one of the filters in the pipeline is having a problem
with the message. Are there known issues with the default filters in WSE
1.0?

> We have a web service that's been returning a SoapException stating that 'Object reference not set to an instance of an object.'. Unfortunately, it's only doing it in one particular environment.  We set up a SoapExtension to trace the messages, ala information at this article (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conalteringsoapmessageusingsoapextensions.asp
) at MSDN.  That article shows how to check the message at each of its message processing stages (before/after serialiization/deserialization).
>
[quoted text clipped - 8 lines]
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

Rate this thread:







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.