473,729 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server did not recognize the value of HTTP Header SOAPAction

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
May 25 '07 #1
2 18128
"Miguel Isidoro" <Mi***********@ discussions.mic rosoft.comwrote in message
news:93******** *************** ***********@mic rosoft.com...
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 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>
That is not a reference to the webmethod. It is the definition of an XML
element. Perhaps this XML element is intended to be sent to the server, and
perhaps even to the Authenticate method, but the above XML does not define
the Authenticate method (operation in WSDL terminology), and doesn't say
that this element is part of the message handled by the operation.

Look at the rest of your WSDL, in the <wsdl:binding/and <wsdl:portTyp e/>
sections.
--
John Saunders [MVP]
May 25 '07 #2
Maybe the termonology is incorrect. I have the web service working at my
development machine and in other web servers. However in this one, not. I
compared the WSDL generated in the development machine and in the erroneous
web server and they are exactly the same. I even analysed the client proxy
class and the namespace I defined is correct. So the info that is being
passed by the client is the one expected by the server. I don't have the WSDL
now so I won't be able to check it until monday but with all that I described
before can you figure out a reason for this behavior?

Thanks
Miguel

"John Saunders [MVP]" wrote:
"Miguel Isidoro" <Mi***********@ discussions.mic rosoft.comwrote in message
news:93******** *************** ***********@mic rosoft.com...
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 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>

That is not a reference to the webmethod. It is the definition of an XML
element. Perhaps this XML element is intended to be sent to the server, and
perhaps even to the Authenticate method, but the above XML does not define
the Authenticate method (operation in WSDL terminology), and doesn't say
that this element is part of the message handled by the operation.

Look at the rest of your WSDL, in the <wsdl:binding/and <wsdl:portTyp e/>
sections.
--
John Saunders [MVP]
May 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7882
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
1
13101
by: Kevin Yu | last post by:
hi All I have a reference to a web servrice in the data access layer. something strange happen with this web service, when calling to one of the web method, it works fine, but not the other web method in the same web service class. I got "Server did not recognize the value of HTTP Header SOAPAction ..." error when calling the second web method. (the web reference to the web service is updated and I checked the reference cs file).
5
2242
by: Grigs | last post by:
Hello, I have a project that contains a WebService that works great when connecting to it on my Localhost. Once we post the files to the test web server, all of the pages that do not touch the webservice work fine. However, the ones that do touch it get the following error: The request failed with HTTP status 404: Not Found Here is the full error:
4
3176
by: J | last post by:
I changed the server after creating a web service (VB.NET), and the WSDL and SOAP headers for the new site's web test page still are showing the old server's name. What code or are configuration do I need to add/change to fix this problem? Jo
5
12522
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error (that appears in plain text), and causes the client to crash. This C# code has been deployed both as an ASP.NET application and a WinForms app, each of which produced the same result. Further, moving the clients from a Windows XP machine to Windows...
4
19971
by: kuladeep.mohan | last post by:
Hi I am trying to consume a web service from asp.net web page through HTTP POST method and I am getting the following error message "System.Net.WebException: The remote server returned an error: (500) Internal Server Error." I have been searchign the web and followed all the options which worked
5
12715
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed into wsdl.exe. Why is this? Is there something I can do to make the input and output wsdl match?
1
11675
by: msg2ajay | last post by:
hello friends, I wrote a WebService client as below import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.namespace.QName;
4
12051
by: gcharbon | last post by:
Hi community, I have a problem with a Soap client written in php. I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error (I'm not sure to understand it...) : SoapFault exception: Method 'ns1:getMetadataRequest' not implemented: method name or namespace not recognized in beta_2/soap.php:26 Stack trace: #0 /root/src/rxtxws/beta_2/soap.php(26):...
0
8921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.