 |
| .NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

February 21st, 2010, 01:48 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
If it returns plain text then its not really a web service is it. Just write an aspx page and use Response.Clear, then Response.Write to write your output.
|
|
The Following User Says Thank You to samjudson For This Useful Post:
|
|
|

March 2nd, 2010, 04:45 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by samjudson
If it returns plain text then its not really a web service is it. Just write an aspx page and use Response.Clear, then Response.Write to write your output.
|
give me a code please to use resonse.clerar and response.write
|
|

March 2nd, 2010, 05:04 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Are you incapable of doing anything yourself?
Is this homework you just don't want to do yourself?
Code:
Response.Clear();
Response.Write("Hello world");
|
|

March 2nd, 2010, 05:47 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by samjudson
Are you incapable of doing anything yourself?
Is this homework you just don't want to do yourself?
Code:
Response.Clear();
Response.Write("Hello world");
|
Sorry, but I have never used "Response.Clear"
and I wrote Response.Clear(Reesponse.write("a"));
but I had an error.
|
|

March 2nd, 2010, 06:03 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Yes, well this is where a little thing called 'Documentation' comes in. Microsoft provide huge amounts of this stuff, mostly at the http://msdn.microsoft.com web site.
Searching google for Response.Clear() would probably have been a good place to start.
|
|
The Following User Says Thank You to samjudson For This Useful Post:
|
|
|

March 2nd, 2010, 06:22 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Code:
<script type="text/javascript" src="http://localhost:51900/uu1/Default.aspx"
/>
why that does not work.
|
|

March 2nd, 2010, 06:27 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Err, how on earth should I know. That's YOUR localhost - I don't have access to it.
|
|

March 2nd, 2010, 06:35 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
<script type="text/javascript" src="http://tareemnet.com/Default.aspx?a=man"
/>
|
|

March 2nd, 2010, 06:44 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Looks like you need a Response.End() after you've written everything.
|
|
 |