Groups | Blog | Home
all groups > dotnet xml > august 2003 >

dotnet xml : SoapExtension Sample


Joe
8/19/2003 2:16:46 PM
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,

lukezhan NO[at]SPAM online.microsoft.com
8/20/2003 4:03:39 AM
You need to make sure the account used by your webserice have enough
permission to write the log file. Based on my test, it indeed will
generate such an error withour enough permission.


Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."
AddThis Social Bookmark Button