Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 914249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:41:17+00:00 2026-05-15T17:41:17+00:00

We have a .NET 2.0 web service (.ASMX file). This web service is being

  • 0

We have a .NET 2.0 web service (.ASMX file). This web service is being called by a Java client and they are not passing in a SoapAction header.

This causes our web service to fail with the error: : “Server did not recognize the value of HTTP Header SOAPAction: .”

There is no chance that I can convince the development team in charge of the calling Java client to include a SoapAction header.

Is there anyway to resolve this problem on my end?

Can I prevent .NET from throwing this error when the SoapAction is missing? Can I direct the call to the correct WebMethod programmatically?

Something like this psuedo-code,

if (Header.SoapAction == String.Empty) then MyWebMethod();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:41:17+00:00Added an answer on May 15, 2026 at 5:41 pm

    According to the SOAP 1.1 specification this is required of HTTP clients.

    6.1 SOAP HTTP Request

    Although SOAP might be used in
    combination with a variety of HTTP
    request methods, this binding only
    defines SOAP within HTTP POST requests
    (see section 7 for how to use SOAP for
    RPC and section 6.3 for how to use the
    HTTP Extension Framework).

    6.1.1 The SOAPAction HTTP Header Field

    The SOAPAction HTTP request header
    field can be used to indicate the
    intent of the SOAP HTTP request. The
    value is a URI identifying the intent.
    SOAP places no restrictions on the
    format or specificity of the URI or
    that it is resolvable. An HTTP client
    MUST use this header field when
    issuing a SOAP HTTP Request.

    Source http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528

    From a quick Google it seems this is a common issue with Java and Axis, but there is some debate whether it is required. Could this help you convince the Java developers that they need to implement the header?

    Edit:

    The correct URI for your SoapAction http header is defined in the WSDL document.

    Goto http://mydomain.com/myservice.asmx?wsdl

    Look for the wsdl:operation element for the method you are calling, it should have a child element soap:operation which has a attribute called soapaction, the URI in there is the one you should use. In a webservice i tested it looks like the namespace followed by / and the method name as follows.

    <wsdl:operation name="AddTwoNumbers">
      <soap:operation soapAction="http://mydomain.com/myservice/AddTwoNumbers" style="document"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a .NET web-service client that has been autogenerated from a wsdl-file using
I have a C# asmx web service that is being called, and I am
I have a .NET Web Service running in VS2005 and a client that consumes
I have an ASP.NET web service which does some heavy lifting, like say,some file
I have a ASP.NET SOAP web service whose web method creates a PDF file,
I have a .aspx page calling a .asmx page's web service. In that .net
I have an ASP.NET web service (.asmx). My service is defined like the following:
I have an application that is an asmx web service written in .NET 2.0
I am trying to hit the following web service with axis2: http://www.webservicex.net/geoipservice.asmx?WSDL I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.