Hi Rory,
As for the webservice on another web application(you want to call in
originate page), is it under the same website or the same main domain
address? For client-side scirpt, we can make webrequests call to other
application, but it has limitation that we cannot perform cross domain
webrequests. If this is not a problem and what you want to do is just a
simple request with some parameters and a return value, I think you can
even use an httphandler on the remote application and let your original
application call that httphandler via xmlhttp post request:
#Use the XMLHttpRequest Object to Post Data
http://www.devx.com/DevX/Tip/17500
I also found the the following web article which mentioned some info about
calling remote AJAX webservice:
#JSON in ASP.NET Ajax: Part 2. Calling a remote JSON Web Service from
client script
http://geekswithblogs.net/JuanDoNebl...in_aspnetajax_
part2.aspx
In addition, for the worst case that the above approaches not work, you can
still consider make a call AJAX webservice call(to the same page's
pagemethod) and let it do a server-side remote call or directly access the
server-side resource. How do you think?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Date: Fri, 25 Jul 2008 16:47:51 +0000 (UTC)
Message-ID: <3a**************************@news.microsoft.com >
From: Rory Becker <ro********@newsgroup.nospam>
Subject: Re: Ajax, Webmethod, PageMethod (multiple versions)
>
Hello Michael Nemtsev [MVP],
>Hello Rory,
Ohhh. actually even if it were allowed to do this, I'd strongly don't
recommed
you to do this, because it's gonna be mess.
You need to divide these domain areas. And I consider that
incorporating
all specific loging into web Service will be the best case for you.
Ok I'm stil a little confused.
are you suggesting
1.Pagemethod call from Page to Site1 which calls a webservice hosted on
Site2?
2.Page uses webservice hosted on Site 2 directly?
3.Something else I didn't think of ?
Thanks for your help in this
--
Rory
>