[Mono-list] Trouble with XSP ServiceClient example

Krautbauer, Bruce bruce.krautbauer@medtronic.com
Tue, 15 Jul 2003 15:43:23 -0500


Hi,

I've installed Mono 0.25 from the distribution RPMs and XSP from CVS on
RH9 with all of the current updates.

When I try to run the ServiceClient example I get the following on the
console:

[root@rfc172020130139 test]# mono ServiceClient.exe localhost:8080
Testing simple web service
=20
Unhandled Exception: System.Exception: Return value is not XML:
text/html
in <0x001bd> 00
System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage)
in <0x00075> 08
System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage)
in <0x00173> 00
System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
(string,object[])
in <0x00075> 08
System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
(string,object[])
in <0x0005e> 00 WebServiceTest.TestService:Echo (string)
in <0x00063> 08 WebServiceTest.TestService:Echo (string)
in <0x000e3> 00 WebServiceTest.ServiceClientTest:Main (string[])

I captured the TCP stream with Ethereal and it looks like this:

POST /TestService.asmx HTTP/1.1
User-Agent: Mono Web Services Client Protocol 0.0
SOAPAction: http://tempuri.org/Echo
Content-Type: text/xml; charset=3Dutf-8
Content-Length: 422
Expect: 100-continue
Host: localhost

HTTP/1.0 200 OK
Server: Mono-XSP Server/0.2.99.0 Unix
X-Powered-By: Mono
Date: Tue, 15 Jul 2003 18:41:13 GMT
Content-Type: text/html; charset=3Dutf-8
Set-Cookie: ASPSESSION=3D97b76268-5d93-47d2-bec2-1663dea88d8e; path=3D/
Content-Length: 989

<html>
<title>Error</title><body bgcolor=3D"white"><h1><font =
color=3D"red">Error in
'/' Application</font></h1><hr>
<h2><font color=3D"maroon"><i>Error</i></font></h2>
<b>Description: </b>Error processing request.
<p>
<b>Error Message: </b>Forbidden
<p>
<b>Stack Trace: </b><table summary=3D"Stack Trace" width=3D"100%"
bgcolor=3D"#ffffc">
<tr><td><code><pre>
System.Web.HttpException: Forbidden<br />in &lt;0x00037&gt; 00
System.Web.HttpMethodNotAllowedHandler:ProcessRequest
(System.Web.HttpContext)<br />in &lt;0x001b0&gt; 00
.ExecuteHandlerState:Execute ()<br />in &lt;0x0004e&gt; 00
.StateMachine:ExecuteState (IStateHandler,bool&amp;)<br /></pre></code>
</td></tr>
</table>
<p>
<hr>
</body>
</html>
<!--
System.Web.HttpException: Forbidden<br />in &lt;0x00037&gt; 00
System.Web.HttpMethodNotAllowedHandler:ProcessRequest
(System.Web.HttpContext)<br />in &lt;0x001b0&gt; 00
.ExecuteHandlerState:Execute ()<br />in &lt;0x0004e&gt; 00
.StateMachine:ExecuteState (IStateHandler,bool&amp;)<br />
-->

I think it looks like I have a permissions problem somewhere, but I'm
not sure where.

Any ideas?

Thanks,
Bruce