By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

Soap Extension Problem

P: n/a
I used
http://msdn.microsoft.com/library/de...extensions.asp
as a template to create a very simple web method with soap extension.

The code like this:
[WebMethod]
[TraceExtensionAttribute]
public string HelloWorld()
{
return "Hello World.";
}

And the Soap Extension and Attribute are the same as the code from MSDN.

When I call the web method in a windows application, I get the following
error message:

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapClient\bin\Debug\SoapClient.exe', Symbols
loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\system.windows.forms.dll' , No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll', No symbols loaded.
'SoapClient.exe': Loaded '7xi98smm', No symbols loaded.
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'.
The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

Any one could help me?
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

It sounds like the soap extension is not implemented properly. Try
commenting out the TraceExceptionAttribute line, recompile and see if the
problem persists. If not, then you know that the code in the extension is
not properly passing the streams between input and output in both
directions.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Extension Problem
thread-index: AcTHXDwQlHAbIGjKSMymafhCuTGsWA==
X-WBNR-Posting-Host: 216.191.75.102
From: =?Utf-8?B?cGVwY2Fn?= <pe****@discussions.microsoft.com>
Subject: Soap Extension Problem
Date: Wed, 10 Nov 2004 11:34:03 -0800
Lines: 46
Message-ID: <AF**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7352
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I used
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconalteringsoapmessageusingsoapextensions.asp
as a template to create a very simple web method with soap extension.

The code like this:
[WebMethod]
[TraceExtensionAttribute]
public string HelloWorld()
{
return "Hello World.";
}

And the Soap Extension and Attribute are the same as the code from MSDN.

When I call the web method in a windows application, I get the following
error message:

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapClient\bin\Debug\SoapClient.exe', Symbols
loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No
symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.web.services.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.
dll', No symbols loaded.
'SoapClient.exe': Loaded '7xi98smm', No symbols loaded.
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'.
The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

Any one could help me?

Nov 21 '05 #2

P: n/a
Acutally, I test this program in Visual Stuido 2005 beta, and it works.

"Dan Rogers" wrote:
Hi,

It sounds like the soap extension is not implemented properly. Try
commenting out the TraceExceptionAttribute line, recompile and see if the
problem persists. If not, then you know that the code in the extension is
not properly passing the streams between input and output in both
directions.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Extension Problem
thread-index: AcTHXDwQlHAbIGjKSMymafhCuTGsWA==
X-WBNR-Posting-Host: 216.191.75.102
From: =?Utf-8?B?cGVwY2Fn?= <pe****@discussions.microsoft.com>
Subject: Soap Extension Problem
Date: Wed, 10 Nov 2004 11:34:03 -0800
Lines: 46
Message-ID: <AF**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7352
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I used
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconalteringsoapmessageusingsoapextensions.asp
as a template to create a very simple web method with soap extension.

The code like this:
[WebMethod]
[TraceExtensionAttribute]
public string HelloWorld()
{
return "Hello World.";
}

And the Soap Extension and Attribute are the same as the code from MSDN.

When I call the web method in a windows application, I get the following
error message:

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapClient\bin\Debug\SoapClient.exe', Symbols
loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No
symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.web.services.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.
dll', No symbols loaded.
'SoapClient.exe': Loaded '7xi98smm', No symbols loaded.
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'.
The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

Any one could help me?

Nov 23 '05 #3

P: n/a

I commnet out the TraceExtensiionAttribute line. It still reports same
error. Is there something wron with soap message?

"Dan Rogers" wrote:
Hi,

It sounds like the soap extension is not implemented properly. Try
commenting out the TraceExceptionAttribute line, recompile and see if the
problem persists. If not, then you know that the code in the extension is
not properly passing the streams between input and output in both
directions.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Extension Problem
thread-index: AcTHXDwQlHAbIGjKSMymafhCuTGsWA==
X-WBNR-Posting-Host: 216.191.75.102
From: =?Utf-8?B?cGVwY2Fn?= <pe****@discussions.microsoft.com>
Subject: Soap Extension Problem
Date: Wed, 10 Nov 2004 11:34:03 -0800
Lines: 46
Message-ID: <AF**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7352
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I used
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconalteringsoapmessageusingsoapextensions.asp
as a template to create a very simple web method with soap extension.

The code like this:
[WebMethod]
[TraceExtensionAttribute]
public string HelloWorld()
{
return "Hello World.";
}

And the Soap Extension and Attribute are the same as the code from MSDN.

When I call the web method in a windows application, I get the following
error message:

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapClient\bin\Debug\SoapClient.exe', Symbols
loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No
symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\sy
stem.web.services.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.
dll', No symbols loaded.
'SoapClient.exe': Loaded '7xi98smm', No symbols loaded.
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'.
The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

Any one could help me?

Nov 23 '05 #4

P: n/a
Hi

If commenting out the soap extension (e.g. deactivating it) still gives you
an exception, it is very likely that the call itself is not properly
formed. How are you creating the call?

Another thing to check is to make sure you didn't also install the
extension via a config entry. If so, disable it there as well. If you
have taken the extension out of play, it is not the source of your problem
if the calls still fail with an exception. In that case it is almost
definitely the request coming in being malformed XML.

Are you sure the exception isn't being generated in the calling program?
if IIS is throwing an HTML error and not launching your application (e.g.
an HTTP encoded 500 response) then the proxy client will choke on the
returned HTML page. When deploying web services on IIS, you should
manually reconfigure the errors such as 404 not found and 500 server error
from the friendly page defaults to a valid SOAP fault response.

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Extension Problem
thread-index: AcTyesrU0BbbTOhJQy+gNDFrIR9X8Q==
X-WBNR-Posting-Host: 216.191.75.102
From: =?Utf-8?B?cGVwY2Fn?= <pe****@discussions.microsoft.com>
References: <AF**********************************@microsoft.co m>
<E6**************@cpmsftngxa10.phx.gbl>
Subject: RE: Soap Extension Problem
Date: Tue, 4 Jan 2005 08:31:07 -0800
Lines: 97
Message-ID: <69**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8394
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
I commnet out the TraceExtensiionAttribute line. It still reports same
error. Is there something wron with soap message?

"Dan Rogers" wrote:
Hi,

It sounds like the soap extension is not implemented properly. Try
commenting out the TraceExceptionAttribute line, recompile and see if the
problem persists. If not, then you know that the code in the extension is not properly passing the streams between input and output in both
directions.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: Soap Extension Problem
thread-index: AcTHXDwQlHAbIGjKSMymafhCuTGsWA==
X-WBNR-Posting-Host: 216.191.75.102
From: =?Utf-8?B?cGVwY2Fn?= <pe****@discussions.microsoft.com>
Subject: Soap Extension Problem
Date: Wed, 10 Nov 2004 11:34:03 -0800
Lines: 46
Message-ID: <AF**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7352
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I used
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconalteringsoapmessageusingsoapextensions.asp
as a template to create a very simple web method with soap extension.

The code like this:
[WebMethod]
[TraceExtensionAttribute]
public string HelloWorld()
{
return "Hello World.";
}

And the Soap Extension and Attribute are the same as the code from MSDN.

When I call the web method in a windows application, I get the following
error message:

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapClient\bin\Debug\SoapClient.exe', Symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s ystem.windows.forms.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No
symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system. drawing.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\sy stem.web.services.dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml. dll', No symbols loaded.
'SoapClient.exe': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web. dll', No symbols loaded.
'SoapClient.exe': Loaded '7xi98smm', No symbols loaded.
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'.
The program '[2436] SoapClient.exe' has exited with code 0 (0x0).

Any one could help me?


Nov 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.