[Mono-list] Trouble with XSP ServiceClient example

Lluis Sanchez lluis@ideary.com
Wed, 16 Jul 2003 00:47:28 +0200


Hi Bruce

Support for server web services was added after releasing Mono 0.25, so
you'll need to update from CVS (don't forget to update your machine.config).

- Lluis

----- Original Message ----- 
From: "Krautbauer, Bruce" <bruce.krautbauer@medtronic.com>
To: <mono-list@lists.ximian.com>
Sent: Tuesday, July 15, 2003 10:43 PM
Subject: [Mono-list] Trouble with XSP ServiceClient example


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

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=utf-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=utf-8
Set-Cookie: ASPSESSION=97b76268-5d93-47d2-bec2-1663dea88d8e; path=/
Content-Length: 989

<html>
<title>Error</title><body bgcolor="white"><h1><font color="red">Error in
'/' Application</font></h1><hr>
<h2><font color="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="Stack Trace" width="100%"
bgcolor="#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


_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list