Hi,
I am attempting to build a web service that uses a custom
soap extension. In an effort to learn about soap
extensions, I developed a simple test web service. I
read the article "Altering the SOAP Message Using SOAP
Extensions" and incorporated the sample code given into
my web service. I copied the TraceExtension and
TraceExtensionAttribute class directly from the article.
I have a single web method:
[WebMethod, TraceExtension]
public string HelloWorld()
{
return "Hello World";
}
that I am calling from a windows application. The proxy
class for my windows application was generated using
Visual Studio .NET 2003 with the "Add Web Reference"
dialog. I am using version 1.1 of the .NET Framework.
When I attempt to call my web method from my client
application the web service throws an
InvalidOperationException and gives me the following
message:
An unhandled exception of
type 'System.InvalidOperationException' occurred in
system.web.services.dll
Additional information: Client found response content
type of '', but expected 'text/xml'.
Any help would be appreciated.
Thanks,
Joe