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
  #11 (permalink)  
Old March 2nd, 2010, 06:50 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

It's that we get more clear, check the following app attached:

http://tareemnet.com/js scr.rar

Thanks for interacting!
Reply With Quote
  #12 (permalink)  
Old March 2nd, 2010, 07:04 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Again, you need a Response.End() after your Response.Write()'s.
__________________
/- 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)
  #13 (permalink)  
Old March 2nd, 2010, 07:25 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
Thumbs up

Quote:
Originally Posted by samjudson View Post
Again, you need a Response.End() after your Response.Write()'s.

Thanks Alot , It worked. I'm so happy of you http://p2p.wrox.com/image.php?u=3370...ine=1254922762 samjudson.
Please Can I help you in any thing ?
I'm from Yemne, Tareem.
please send me a private message.
Reply With Quote
  #14 (permalink)  
Old March 2nd, 2010, 11:13 AM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

Does a web service return XML document or plain text string (assume the data type it return is a string)? The answer is both. A web service call goes a long way and involves multiple components. When the response initially comes back, it is a XML document, but typically when the programmer receives the response, it has already been turned into the data types that programmer are familiar with, for example a string.
Reply With Quote
  #15 (permalink)  
Old March 2nd, 2010, 03:09 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
Default

Quote:
Originally Posted by msman88 View Post
<script type="text/javascript" src="http://tareemnet.com/Default.aspx?a=man"
/>
why does not work with localhost, and only worked with htt://www.tareemnet.com/default.aspx?a=man
Reply With Quote
  #16 (permalink)  
Old March 3rd, 2010, 08:35 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well the 'localhost' will be relative to the computer running the browser. You can make it a relative URL if the web page is on the same server, e.g. src="/Default.aspx?a=man"
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
Reply With Quote
  #17 (permalink)  
Old March 3rd, 2010, 09:34 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
Exclamation

Quote:
Originally Posted by samjudson View Post
Well the 'localhost' will be relative to the computer running the browser. You can make it a relative URL if the web page is on the same server, e.g. src="/Default.aspx?a=man"

Yeah.. You are right. But this is not what I mean.
What I mean is that the file index.htm that have the js code is located on my computer desktop. and the default.aspx file is run under the localhost from the same my computer.

so why this is not working?
Code:
<script type="text/javascript" src="http://localhost:51900/uu1/Default.aspx?a=man" />
and when the file is run on the web, it's run well
Code:
<script type="text/javascript" src="http://www.tareemnet.com/pro/default.aspx?a=man" />
hope you understood..

Last edited by msman88; March 3rd, 2010 at 09:37 AM.
Reply With Quote
  #18 (permalink)  
Old March 3rd, 2010, 09:52 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well what happens when you put the URL straight into the browser:

http://localhost:51900/uu1/Default.aspx?a=man

Do you get a response back? Is it a 404 error perhaps, or a DNS error? Because whatever the error you get when running that will be the reason it isn't working.
__________________
/- 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 3rd, 2010)
  #19 (permalink)  
Old March 3rd, 2010, 09:56 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
Well what happens when you put the URL straight into the browser:

http://localhost:51900/uu1/Default.aspx?a=man

Do you get a response back? Is it a 404 error perhaps, or a DNS error? Because whatever the error you get when running that will be the reason it isn't working.

No Error, and it works fine. I get the same as I get here : http://www.tareemnet.com/pro/default.aspx?a=man
Reply With Quote
  #20 (permalink)  
Old March 3rd, 2010, 09:59 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Then I'm afraid I have no idea - it should work fine, but as I can't see your machine I have no way of diagnosing further.
__________________
/- 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 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 03: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



All times are GMT -4. The time now is 12:36 AM.


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