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 / October 2006

Tip: Looking for answers? Try searching our database.

Setting up Soap Actions in Config files?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anbu - 12 Oct 2006 04:41 GMT
Hi All,

I need to implement multiple Soap Actions with same functionality. Is
it possible to setup configuration to use the same function with
multiple SoapActions?

I want to avoid the compilation for every changes made for the Action
alone.

[SoapMethod("mymethod1")]
       public SoapEnvelope myMethod1(SoapEnvelope envelope)
       {
.... Implements something / calls another function
       }

[SoapMethod("mymethod2")]
       public SoapEnvelope mymethod2(SoapEnvelope envelope)
       {
.... Implements something / calls another function
       }

Any suggestions?

Thanks
Pablo Cibraro [MVP] - 12 Oct 2006 15:27 GMT
Hi,

There is not a simple way to configure a method with multiple soap actions.
You can do it, but it requires some custom and complex code.
For instance,  you can override the method RouteRequest to call the right
method

public class MyService : Microsoft.Web.Services3.Messaging.SoapService
   {
       protected override
Microsoft.Web.Services3.Messaging.SoapMethodInvoker
RouteRequest(Microsoft.Web.Services3.SoapEnvelope request)
       {
           return base.RouteRequest(request);
       }
   }

However, I do not recommed that approch because of its complexity.

I think a Soap Router will work best in an scenario like this. You can take
a look to the router quickstart shipped with WSE.

Regards,
Pablo.

> Hi All,
>
[quoted text clipped - 20 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.