[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 588
  • Last Modified:

set SOAPAction to empty

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)

thanks,
Screenshot--131-.png
0
RamzyNEbeid
Asked:
RamzyNEbeid
1 Solution
 
Rose BabuSenior Team ManagerCommented:
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...
[WebMethod]
[System.Web.Services.Protocols.SoapDocumentMethod(Action = "")]
public string ProcessRequest()
{
	return "Process Requested...";
}

Open in new window

Hope this helps. Let me know if any.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now