Adding a new web method gets me the "Server did not recognize the value of HTTP Header SOAPAction" error

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Adding a new web method gets me the "Server did not recognize the value of HTTP Header SOAPAction" error

    A couple of weeks ago, I set up a .NET web service with one web
    method. Since then, my Linux client has been using the one method with
    no problem. Today, I added a second web method in the same service.
    Here's an excerpt from the wsdl file:

    <definitions targetNamespace="http://cscweb/WebServices">
    -<types>
    -<s:schema elementFormDefault="qualified"
    targetNamespace="http://cscweb/WebServices">
    -<s:element name="UpdateInq">
    ....
    -<s:element name="UpdatePowerMT">

    To me, everything looks good. "UpdateInq" is the original method,
    "UpdatePowerMT" is the new one, both are declared as WebMethods and
    show up in WSDL. When I call UpdatePowerMT, I see this:

    System.Web.Services.Protocols.SoapException: Server did not recognize
    the value of HTTP Header SOAPAction:
    [url]http://cscweb/WebServices/UpdatePowerMT[/url].

    Replace the call with UpdateInq and it works, go back to UpdatePowerMT
    and it breaks again. What's going on here? Is there some sort of
    cached version of the service that's not getting updated with the new
    content? Checking the debugging info for UpdatePowerMT shows it with
    the same syntax as UpdateInq, just the different name. Argh!

    Thanks for any help, Steve
    Steve Evans Guest

  2. Similar Questions and Discussions

    1. Server did not recognize the value of HTTP Header SOAPAction
      Hello I have a Web Services (called wsSample) developed with Visual Studio .NET 2k03 and an Add-In for Office (called addSample) that use...
    2. Server did not recognize value of HTTP Header SOAPAction
      When creating my web service I set the namespace to test. Now that I have completed the service I have changed the namespace to...
    3. Random Server did not recognize the value of HTTP Header SOAPAction Error
      Hi, I'm having problems with my webservice. I have a fully functional webservice, but once in a while I get the error message "Server did not...
    4. random "Server did not recognize the value of HTTP Header SOAPAction"
      We are building a large client-server application based on XML WebServices. A lot of shared code is encapsulated in class libraries used by both the...
    5. Unhandled exception: Server did not recognize the value of HTTP Header SOAPAction
      I have the following code with errors on the lines as indicated by the -> and the explanation in the exception details below; ' FORM1.VB Private...
  3. #2

    Default RE: Adding a new web method gets me the "Server did not recognize the value of HTTP Header SOAPAction" error

    I'm not trying to be smart here, but even though you updated you WSDL document, did you regenerate your client side proxy class thats based on the WSDL?
    John Conwell Guest

  4. #3

    Default RE: Adding a new web method gets me the "Server did not recognize the value of HTTP Header SOAPAction" error

    Thanks for your note. If you mean removing the .cs file (InqService.cs,
    in
    this case) and creating a new one using wsdl from a command window
    ("wsdl /o:InqService.cs ..." etc), then I did. Or is there a different
    document that you're referring to?

    Steve

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Steve Evans Guest

  5. #4

    Default Adding a new web method gets me the "Server did not recognize the value of HTTP

    So, I recently got this same error when I had introduced a new method to a web service but hadn't pushed the new web service to production at the same time the clients rolled out. The new version clients bounced against the old web service (which didn't have the new method) and gave back the same error you show.
    P. Smith Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139