[Mono-list] Trouble with XSP ServiceClient example
Krautbauer, Bruce
bruce.krautbauer@medtronic.com
Thu, 17 Jul 2003 16:03:13 -0500
Hi Lluis, thanks for the tip! I should have realized that. The sample
is running now on one of my systems, but not on the other. I'll start a
new post on that.
Thanks again!
Bruce
-----Original Message-----
From: Lluis Sanchez [mailto:lluis@ideary.com]=20
Sent: Tuesday, July 15, 2003 5:47 PM
To: Krautbauer, Bruce; mono-list@lists.ximian.com
Subject: Re: [Mono-list] Trouble with XSP ServiceClient example
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 -----=20
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=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 <0x00037> 00
System.Web.HttpMethodNotAllowedHandler:ProcessRequest
(System.Web.HttpContext)<br />in <0x001b0> 00
.ExecuteHandlerState:Execute ()<br />in <0x0004e> 00
.StateMachine:ExecuteState (IStateHandler,bool&)<br /></pre></code>
</td></tr>
</table>
<p>
<hr>
</body>
</html>
<!--
System.Web.HttpException: Forbidden<br />in <0x00037> 00
System.Web.HttpMethodNotAllowedHandler:ProcessRequest
(System.Web.HttpContext)<br />in <0x001b0> 00
.ExecuteHandlerState:Execute ()<br />in <0x0004e> 00
.StateMachine:ExecuteState (IStateHandler,bool&)<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