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]
[TraceExtensionA ttribute]
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\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No
symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.servi ces.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .dll', No symbols loaded.
'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
in system.web.serv ices.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?
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]
[TraceExtensionA ttribute]
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\mic rosoft.net\fram ework\v1.1.4322 \mscorlib.dll', No symbols
loaded.
'SoapClient': Loaded 'D:\Test\SoapCl ient\bin\Debug\ SoapClient.exe' , Symbols
loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.windows.forms \1.0.5000.0__b7 7a5c561934e089\ system.windows. forms.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m\1.0.5000.0__b 77a5c561934e089 \system.dll', No
symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.drawing\1.0.5 000.0__b03f5f7f 11d50a3a\system .drawing.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.web.services\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.servi ces.dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.xml\1.0.5000. 0__b77a5c561934 e089\system.xml .dll', No symbols loaded.
'SoapClient.exe ': Loaded
'c:\windows\ass embly\gac\syste m.web\1.0.5000. 0__b03f5f7f11d5 0a3a\system.web .dll', No symbols loaded.
'SoapClient.exe ': Loaded '7xi98smm', No symbols loaded.
An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
in system.web.serv ices.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?
Comment