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:
msdnmg@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.
--------------------
Quote:
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <htinns@noemail.noemail>
>References: <6DFF6104-4C5E-488D-9027-DC20E79FA826@microsoft.com>
<4#QHphi8IHA.4744@TK2MSFTNGHUB02.phx.gbl>
<CE156F5B-963C-4C53-9B83-8C69840CB704@microsoft.com>
<GW9MRCs8IHA.4376@TK2MSFTNGHUB02.phx.gbl>
Quote:
>Subject: RE: Ajax calls web service in wcf(windows service)
>Date: Wed, 30 Jul 2008 22:38:00 -0700
Quote:
>
>OK, please close it as resolved, thank you!
>
>
>"Steven Cheng [MSFT]" wrote:
>
Quote:
>Hi Billy,
>>
>I have performed some research on this. Here is some information I've
got
Quote:
Quote:
>so far:
>>
>As for the ASP.NET client script based AJAX call, it is limited by the
web
Quote:
Quote:
>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
Quote:
Quote:
>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
Quote:
Quote:
>local server-side page method in which you use server-side code to call
the
Quote:
Quote:
>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
Quote:
Quote:
>suggestions about how we can improve the support we provide to you.
Please
Quote:
Quote:
>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:
>
msdnmg@microsoft.com.
>>
>================================================= =
>Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscripti...ult.aspx#notif Quote:
Quote:
>ications.
>>
>================================================= =
>This posting is provided "AS IS" with no warranties, and confers no
rights.
Quote:
Quote:
>--------------------
Quote:
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <htinns@noemail.noemail>
>References: <6DFF6104-4C5E-488D-9027-DC20E79FA826@microsoft.com>
><4#QHphi8IHA.4744@TK2MSFTNGHUB02.phx.gbl>
Quote:
>Subject: RE: Ajax calls web service in wcf(windows service)
>Date: Wed, 30 Jul 2008 02:46:05 -0700
>>
Quote:
>
>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
Quote:
>the contents are posted via UTF8 or other unicode format? You can try
>first
Quote:
>paste them into a notepad with unicode encoding and repost the
content
Quote:
Quote:
Quote:
>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
Quote:
>suggestions about how we can improve the support we provide to you.
>Please
Quote:
>feel free to let my manager know what you think of the level of
service
Quote:
Quote:
Quote:
>provided. You can send feedback directly to my manager at:
>
msdnmg@microsoft.com.
>>
>--------------------
>>
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <htinns@noemail.noemail>
>Subject: Ajax calls web service in wcf(windows service)
>Date: Wed, 30 Jul 2008 01:57:01 -0700
>>
>
>>
>>
>æË*‘们现åœ ¨é‡åË
*°ä¸€ä¸ªé—® ©Â¢ËœÃ¯Â¼Å’Ã
©â‚?
šè¿‡wcfÃ¥Ë*݌ȼ çš„webservice
¯Â¼Å’选择windo
Quote:
>service作为宿ä ¸Â»Ã¯Â¼Å’éâ
€¡â€¡Ã§â€Â¨java作䠸ºå®¢?
¦Ë*·ç«¯è°ƒçâ€Â æË*ÂÃ¥?ŸÃ
¯Â¼Å’但是æâ?法?
Quote:
Quote:
Quote:
½¿çâ€Â¨asp.net
ajaxè°ƒçâ€Â¨Ã£â‚?
Quote:
Quote:
>æË*‘们å‚è⠂¬Æ’äºâ€
http://msdn.microsoft.com/zh-cn/library/bb Quote:
Quote:
>410780.aspx的资æâ ?
™ï¼Œå¹¶ä¸â€Ã ¸‹è½½Ã
¤Âºâ€ 相åºâ€Ã§Å¡â€žsampl e
Quote:
Quote:
Quote:
>>
>code,ä½â€
是å‘现è¿⠢些sample
¥Å¸ÂºÃ¦Å“¬ä¸?Ã
Quote:
Quote:
>©Æ’½éœ€è¦Âåœ ¨iisä¸Å
部署一丠ªsvcæâ?
Quote:
Quote:
>‡ä»¶ï¼Œä½â€
是Ã?¹æÂ®å½“å ‰Â业Ã
Š¡éœ€æ±?
€šÃ¯Â¼Å’æË*‘们æ â?法éÆ
’¨ç½²iisæœÂÃ¥?¡å „¢Â¨Ã£â‚?
Quote:
Quote:
Quote:
>是å¦有windows service
host的wcf service与asp.net
ajaxÃ¥ÂÂ作的蠧£åâ?³æâ
“¹æ¡Ë*?谢è °¢ãâ‚?