 |
| .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
|
|
|
|

March 2nd, 2010, 06:50 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
It's that we get more clear, check the following app attached:
http://tareemnet.com/js scr.rar
 Thanks for interacting!
|
|

March 2nd, 2010, 07:04 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Again, you need a Response.End() after your Response.Write()'s.
|
|
The Following User Says Thank You to samjudson For This Useful Post:
|
|
|

March 2nd, 2010, 07:25 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by samjudson
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.
|
|

March 2nd, 2010, 11:13 AM
|
|
Friend of Wrox
|
|
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
|
|
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.
|
|

March 2nd, 2010, 03:09 PM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by msman88
<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
|
|

March 3rd, 2010, 08:35 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
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"
|
|

March 3rd, 2010, 09:34 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by samjudson
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..
|
|

March 3rd, 2010, 09:52 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
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.
|
|
The Following User Says Thank You to samjudson For This Useful Post:
|
|
|

March 3rd, 2010, 09:56 AM
|
|
Authorized User
|
|
Join Date: Feb 2008
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by samjudson
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
|
|

March 3rd, 2010, 09:59 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
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.
|
|
 |