Oleg,
Sure, here’s the response I captured via Visual Studio 2008.
<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://localhost:5786/Swe.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em; PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP: 0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Swe Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"heading1\">Swe Service</P><BR/><P class=\"intro\">You have created a service.<P class='intro'>To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:</P> <BR/><PRE>svcutil.exe <A HREF=\"http://localhost:5786/Swe.svc?wsdl\">http://localhost:5786/Swe.svc?wsdl</A></PRE></P><P class=\"intro\"/>This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:<BR/><P class='intro'><B>C#</B></P><PRE><font color=\"blue\">class </font><font color=\"teal\">Test\n</font>{\n<font color=\"blue\"> static void </font>Main()\n {\n <font color=\"teal\">SweClient</font> client = <font color=\"blue\">new </font><font color=\"teal\">SweClient</font>();\n\n<font color=\"green\"> // Use the 'client' variable to call operations on the service.\n\n</font><font color=\"green\"> // Always close the client.\n</font> client.Close();\n }\n}\n</PRE><BR/><P class='intro'><B>Visual Basic</B></P><PRE><font color=\"blue\">Class </font><font color=\"teal\">Test\n</font><font color=\"blue\"> Shared Sub </font>Main()\n<font color=\"blue\"> Dim </font>client As <font color=\"teal\">SweClient</font> = <font color=\"blue\">New </font><font color=\"teal\">SweClient</font>()\n<font color=\"green\"> ' Use the 'client' variable to call operations on the service.\n\n</font><font color=\"green\"> ' Always close the client.\n</font> client.Close()\n<font color=\"blue\"> End Sub\n</font><font color=\"blue\">End Class</font></PRE></DIV></BODY></HTML>
I got this value back from here [see responseData variable below]:
private TResponse CreateResponse<TResponse>(HttpWebResponse webResponse)
{
StreamReader responseStream = newStreamReader(webResponse.GetResponseStream());
string responseData = responseStream.ReadToEnd();
What happens next is that an exception is thrown when the code attempts to deserialize the xml [for obvious reasons :-) ]
if (ser.CanDeserialize(XmlReader.Create(newStringReader(responseData))))
{
response = (TResponse)ser.Deserialize(newStringReader(responseData));
}
elseif (this._exceptionSerializer.CanDeserialize(XmlReader.Create(newStringReader(responseData))))
{