Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 20th, 2010, 12:53 PM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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
Reply With Quote
  #2 (permalink)  
Old February 21st, 2010, 12:48 PM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 36%
Activity: 36% Activity: 36% Activity: 36%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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?
Reply With Quote
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 2nd, 2010)
  #3 (permalink)  
Old March 2nd, 2010, 03:45 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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
Reply With Quote
  #4 (permalink)  
Old March 2nd, 2010, 04:04 AM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 36%
Activity: 36% Activity: 36% Activity: 36%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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?
Reply With Quote
  #5 (permalink)  
Old March 2nd, 2010, 04:47 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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.
Reply With Quote
  #6 (permalink)  
Old March 2nd, 2010, 05:03 AM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 36%
Activity: 36% Activity: 36% Activity: 36%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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?
Reply With Quote
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 2nd, 2010)
  #7 (permalink)  
Old March 2nd, 2010, 05:22 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
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.
Reply With Quote
  #8 (permalink)  
Old March 2nd, 2010, 05:27 AM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 36%
Activity: 36% Activity: 36% Activity: 36%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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?
Reply With Quote
  #9 (permalink)  
Old March 2nd, 2010, 05:35 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

<script type="text/javascript" src="http://tareemnet.com/Default.aspx?a=man"
/>
Reply With Quote
  #10 (permalink)  
Old March 2nd, 2010, 05:44 AM
samjudson's Avatar
Friend of Wrox
Points: 8,448, Level: 39
Points: 8,448, Level: 39 Points: 8,448, Level: 39 Points: 8,448, Level: 39
Activity: 36%
Activity: 36% Activity: 36% Activity: 36%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,088
Thanks: 1
Thanked 181 Times in 180 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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06: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 04: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 06:27 AM
return type? Sibananda Tripathy J2EE 1 January 3rd, 2005 03:03 AM



All times are GMT -4. The time now is 09:43 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.