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 March 2nd, 2010, 06:50 AM
Authorized User
 
Join Date: Feb 2008
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!
 
Old March 2nd, 2010, 07:04 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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?
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 2nd, 2010)
 
Old March 2nd, 2010, 07:25 AM
Authorized User
 
Join Date: Feb 2008
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.
 
Old March 2nd, 2010, 11:13 AM
Friend of Wrox
 
Join Date: Dec 2008
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.
 
Old March 2nd, 2010, 03:09 PM
Authorized User
 
Join Date: Feb 2008
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
 
Old March 3rd, 2010, 08:35 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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?
 
Old March 3rd, 2010, 09:34 AM
Authorized User
 
Join Date: Feb 2008
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..
 
Old March 3rd, 2010, 09:52 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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?
The Following User Says Thank You to samjudson For This Useful Post:
msman88 (March 3rd, 2010)
 
Old March 3rd, 2010, 09:56 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
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
 
Old March 3rd, 2010, 09:59 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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?





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.