Thanks or your reply.
Yes, this is a "cross-browser" script restriction which prevent script to
interact with remote site(domain).
Anyway, so far for your scenario, two possible solutions are available:
1. use AJAX call to invoke local server-side page method and let
server-side to call the WCF service
2. Move the WCF to the local site/application(at least need to have the
same main domain server name) with your web page application.
If there is anything else need help, please feel free to post here.
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.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <ht****@noemail.noemail>
References: <6D**********************************@microsoft.co m>
<4#**************@TK2MSFTNGHUB02.phx.gbl>
<CE**********************************@microsoft.co m>
<GW**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: Ajax calls web service in wcf(windows service)
Date: Wed, 30 Jul 2008 22:38:00 -0700
>
OK, please close it as resolved, thank you!
"Steven Cheng [MSFT]" wrote:
>Hi Billy,
I have performed some research on this. Here is some information I've
got
>so far:
As for the ASP.NET client script based AJAX call, it is limited by the
web
>page script model. For all the web pages in webbrowser, webbrowser will
restrict the script to access pages on remote server. For example, if
your
>page is from http://serverA , if your script try use some script
component to send webrequest to other server/application, it is not
allowed. And this also restrict the AJAX method call to remote
applications(webservice or wcf). I've even tried call WCF on the same
machine(different server application), it is now allowed.
So far, one way to make such remote WCF method call I can get is create
a
>local server-side page method in which you use server-side code to call
the
>remote WCF service. And your page's client-side script call this
server-side page_method via AJAX. 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.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
>--------------------
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <ht****@noemail.noemail>
References: <6D**********************************@microsoft.co m>
<4#**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: Ajax calls web service in wcf(windows service)
Date: Wed, 30 Jul 2008 02:46:05 -0700
>
I wrote it in Chinese, could you read Chinese in your tool?
"Steven Cheng [MSFT]" wrote:
Hi Billy,
The thread content is displayed as garbo code, have you verified that
all
>the contents are posted via UTF8 or other unicode format? You can try
first
>paste them into a notepad with unicode encoding and repost the
content
>again to see whether it works.
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.
--------------------
From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <ht****@noemail.noemail>
Subject: Ajax calls web service in wcf(windows service)
Date: Wed, 30 Jul 2008 01:57:01 -0700
æË*‘们现åœ ¨é‡åË
*°ä¸€ä¸ªé—® ©Â¢ËœÃ¯Â¼Å’Ã
©â‚?
>
šè¿‡wcfÃ¥Ë*݌ȼ çš„webservice
¯Â¼Å’选择windo
>ws
service作为宿ä ¸Â»Ã¯Â¼Å’éâ
€¡â€¡Ã§â€Â¨java作䠸ºå®¢?
>
¦Ë*·ç«¯è°ƒçâ€Â æË*ÂÃ¥?ŸÃ
¯Â¼Å’但是æâ?法?
½¿çâ€Â¨asp.net
ajaxè°ƒçâ€Â¨Ã£â‚?
>>
æË*‘们å‚è⠂¬Æ’äºâ€
http://msdn.microsoft.com/zh-cn/library/bb
>410780.aspx的资æâ ?
>
™ï¼Œå¹¶ä¸â€Ã ¸‹è½½Ã
¤Âºâ€ 相åºâ€Ã§Å¡â€žsampl e
>>
code,ä½â€
是å‘现è¿⠢些sample
¥Å¸ÂºÃ¦Å“¬ä¸?Ã
>©Æ’½éœ€è¦Âåœ ¨iisä¸Å
部署一丠ªsvcæâ?
>
‡ä»¶ï¼Œä½â€
是Ã?¹æÂ®å½“å ‰Â业Ã
Š¡éœ€æ±?
>
€šÃ¯Â¼Å’æË*‘们æ â?法éÆ
’¨ç½²iisæœÂÃ¥?¡å „¢Â¨Ã£â‚?
>是å¦有windows service
host的wcf service与asp.net
>>
ajaxÃ¥ÂÂ作的蠧£åâ?³æâ
“¹æ¡Ë*?谢è °¢ãâ‚?
>>