Hi,
I've built an ASP.NET 1.1 web service and an ASP.NET 1.1 application that
calls it
is throwing the following exception:
System.Web.Serv ices.Protocols. SoapException: Server did not recognize the
value of HTTP Header SOAPAction: http://ipm.sitefactory.com/Authenticate. at
System.Web.Serv ices.Protocols. Soap11ServerPro tocolHelper.Rou teRequest() at
System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( ) at
System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )
The web service class definition is:
[WebService(Name space="http://ipm.sitefactory .com/")]
public class UserService : WebService
{
...
}
The web method definition is:
[WebMethod(Descr iption="Web method description.")]
public User Authenticate(Us er user)
{
//code
}
I've checked the WSDL and the beginning is as follows:
<wsdl:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://ipm.sitefactory .com/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="http://ipm.sitefactory .com/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
The reference to the web method in WSDL is:
<s:element name="Authentic ate">
<s:complexTyp e>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="user" type="tns:User" />
</s:sequence>
</s:complexType>
</s:element>
Like you see, the namespace http://ipm.sitefactory.com/ is present
everywhere correctly and I can't understand why the request is not being
routed to the right web method. Everything seems to be correct from the class
definition to the WSDL. Any suggestions?
Thanks in advance,
Miguel Isidoro