set SOAPAction to empty

Posted on 2014-08-18
Last Modified: 2014-08-23
Dear All

i created my WebService using VS2010, C#.

i want to Set the SOAPAction to empty (this is my vendor request)

attached is an image of my method and where exactly i want to clear the SOAPAction.
(this is what i want it to look like as the attached image)

Question by:RamzyNEbeid
    1 Comment
    LVL 16

    Accepted Solution

    Dear RamzyNEbeid,

    you can sets the SOAPAction HTTP header field value to any value by using SoapDocumentMethod's Action property as shown below...
    [System.Web.Services.Protocols.SoapDocumentMethod(Action = "")]

    Open in new window

    Sample coding...
    [System.Web.Services.Protocols.SoapDocumentMethod(Action = "")]
    public string ProcessRequest()
    	return "Process Requested...";

    Open in new window

    Hope this helps. Let me know if any.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now