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 / March 2007

Tip: Looking for answers? Try searching our database.

Difference between SoapDocumentMethod(OneWay=true)] and OneWay Att

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Bailey - 09 Mar 2007 14:23 GMT
Does anyone know what the difference between the
SoapDocumentMethod(OneWay=true)] and the [OneWay] attribute?  According to
the documentation, both seem to specifiy that a web service method is one way
only and does not return any data (a void method essentially).

Could someone please outline the difference between the two?  Most of the
documentation I've seen states to use SoapDocumentMethod(OneWay=true)] when
implementing one way methods, but it seems like the OneWay attribute would be
more intuitive (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemruntimeremotingmessagingonewayattributeclasstopic.asp
).

Thanks
Mariano Omar Rodriguez - 09 Mar 2007 16:52 GMT
The difference is that the OneWayAttribute works for remoting whereas
SoapDocumentMethod(OneWay=true)]  works for Web Services.

> Does anyone know what the difference between the
> SoapDocumentMethod(OneWay=true)] and the [OneWay] attribute?  According to
[quoted text clipped - 11 lines]
>
> Thanks
John Bailey - 09 Mar 2007 17:53 GMT
And if you have a remoting object hosted in IIS that uses the SOAP formater?  
Web services are essentially a specific application of remoting; I'm
surprised that there is such a difference.

> The difference is that the OneWayAttribute works for remoting whereas
> SoapDocumentMethod(OneWay=true)]  works for Web Services.
[quoted text clipped - 14 lines]
> >
> > Thanks
John Bailey - 09 Mar 2007 17:53 GMT
Oh, and thanks clearing it up!  I appreciate it.

> The difference is that the OneWayAttribute works for remoting whereas
> SoapDocumentMethod(OneWay=true)]  works for Web Services.
[quoted text clipped - 14 lines]
> >
> > Thanks

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.