473,412 Members | 4,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Soap Extension Problem

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
4 5995
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David C. allen | last post by:
I have created a simple Client-side SOAP Extension for a webclass that I have. When I apply the extension attribute to the the calling function in the proxy class I get an error 'Value cannot be...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
0
by: Amar | last post by:
I am recieving the "The root element is missing" error from my soap extension while attempting to validate an incoming SOAP message request. I suspect the problem resides in the ChainStream method...
4
by: Ramon de Klein | last post by:
I have created a SOAP extension that can be enabled using a SoapExtensionAttribute. This attibute holds two additional properties that are used to configure the SOAP extension. This works fine, but...
0
by: Matt Wood | last post by:
Hi, I have written a Web Service for a customer which expects a SOAP message with Document/Literal encoding, and uses RoutingStyle=SoapServiceRoutingStyle.RequestElement to route the SOAP body...
0
by: zac# | last post by:
i interesting to try using soap extension, and i using sample on msdn. but when i debug my soap extension, i have error message... i invoke soap extension using client desktop application, i want...
1
by: khoy | last post by:
Hello. I am writing a web service and I need to use a Soap Extension to add a custom header that is expected at the destination. I can use the Soap Extension successfully for adding the header...
2
by: Frederik Vanderhaegen | last post by:
Hi, I'm writing a simple soap extension for a webservice I developed (without the use of an extension the webservice works perfect). The extension is registered through the web.config files of...
1
by: klerik123456 | last post by:
I try set soap extension attributes on client side. For example: Implementation in web service: public class EncryptMessageAttribute : SoapExtensionAttribute { private string...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.