Re: Server did not recognize the value of HTTP Header SOAPAction



Thanks for the reply.

I'm very puzzled here. I created a new test winforms project in 1.1. it
just has a simple form with 1 button on it. the code behind uses the exact
same code to call the exact same web service as the winforms app described
in my original post. both winforms apps use a have identical web references
to the same web service. The test app works OK, but the original app fails.
both apps should be creating identical credentials and I have not edited any
attributes or name spaces.

What's even more puzzling is that the app having this trouble uses a
different web service to login which works OK. The login uses myLogin.asmx
and the method that fails uses someOtherWS.asmx (all of which run in the
same WS app.). However, the login runs from a different project
(myLoginProject) and the rest of the app runs in myMainProject.

to answer your last question, yes I have a .net 2.0 winforms test app which
successfully calls this ws, but I also have the above mentioned 1.1 test app
which successfully calls this ws. Can you tell me how I can capture the
text of each proxy to compare with the one failing?

--
moondaddy@xxxxxxxxxxxxxxx
"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:xC%23%23ZnXeGHA.764@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Moondady,

Welcome to the ASPNET newsgroup.

From your description, I understand you've developed an ASP.NET webservice
which is consumed by a winform client application. Both ones are
constructed under .net framework 1.1. Recently, you upgrade the webservice
from ASP.NET 1.1 to ASP.NET 2.0, after that the 1.1 winform client broke
and reported the "Server did not recognize the value of HTTP Header
SOAPAction" error ,correct?

Based on my experience, since http SoapAction headeris used to identify
the
webmethod of a certain webservice, the problem is likely due to the client
application is sending an unexpected SoapAction header to the service. And
in ASP.NET webservice, the SoapAction header will be determined by both
the
service's namespace and the Action property set on the WebMethod
attribute.


#WebServiceAttribute.Namespace Property
http://msdn2.microsoft.com/en-us/library/system.web.services.webserviceattri
bute.namespace(VS.80).aspx

#SoapDocumentMethodAttribute.Action Property
http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.soapd
ocumentmethodattribute.action.aspx

Have you explicitly set this property for your webservice and the
webmethod? Also, for general troubleshooting, you can create a .net 2.0
webservice proxy to see whether it can work correctly. If it works, you
can
compare the 2.0 client's generated proxy code with 1.1 client's code or
you
can use some trace tools to capture the raw SOAP xml message sent by
different clients to find the difference between them.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no
rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)






.