Wrox Programmer Forums
|
.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
 
Old February 20th, 2010, 01:53 PM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Smile Return data type

Could I have a webservice return value in shape of text only not xml
Ex: http://ads.adbrite.com/mb/text_group...s=3732385f3930
 
Old February 21st, 2010, 01:48 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 2nd, 2010)
 
Old March 2nd, 2010, 04:45 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by samjudson View Post
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
 
Old March 2nd, 2010, 05:04 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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");
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old March 2nd, 2010, 05:47 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by samjudson View Post
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.
 
Old March 2nd, 2010, 06:03 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

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.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 2nd, 2010)
 
Old March 2nd, 2010, 06:22 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Code:
<script type="text/javascript" src="http://localhost:51900/uu1/Default.aspx"
/>
why that does not work.
 
Old March 2nd, 2010, 06:27 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Err, how on earth should I know. That's YOUR localhost - I don't have access to it.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old March 2nd, 2010, 06:35 AM
Authorized User
 
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

<script type="text/javascript" src="http://tareemnet.com/Default.aspx?a=man"
/>
 
Old March 2nd, 2010, 06:44 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Looks like you need a Response.End() after you've written everything.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
he conversion of a char data type to a datetime data type resulted in an out-of-range adamhw Classic ASP Basics 3 December 23rd, 2009 07:18 AM
Method must have a return type Mr.Rendezvous BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 2 November 25th, 2009 05:21 PM
return type as Form neriam Beginning VB 6 1 August 9th, 2009 02:25 AM
Generic return type mega C# 2005 1 November 30th, 2006 07:27 AM
return type? Sibananda Tripathy J2EE 1 January 3rd, 2005 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.