473,412 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Ajax calls web service in wcf(windows service)

我们现在遇到一个问题,通过wcf创建 webservice,选择windows
service作为宿主,采用java作为客户端调 用成功,但是*法使用asp.net ajax调用。
我们参考了http://msdn.microsoft.com/zh-cn/libr...应的sample
code,但是发现这些sample基本上都需要 iis上部署一个svc文件,但是*据当前 业务需求,我们*法部署iis服务器。
是否有windows service host的wcf service与asp.net ajax协作的解决方案?谢谢。

Jul 30 '08 #1
7 4583
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/libr...0.aspx的资
,并且下载了相应的sample
>code,但是发现这些sample基本上都需要 在iis上部署一个svc
件,但是*据当前业务需求,我们* 部署iis服务器?
是否有windows service host的wcf service与asp.net
ajax协作的解决方案?谢谢?
>
Jul 30 '08 #2
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/libr...资æ–
™ï¼Œå¹¶ä¸”下载äº*相 º”çš„sample
code,ä½*是发现这些 sample基本ä¸*都需要在i isä¸*部署一个svcæ–
‡ä»¶ï¼Œä½*æ˜¯æ ¹æ®å½“å‰ä¸šå*¡éœ€æ±‚ï ¼Œæˆ‘ä»¬æ— æ³•éƒ¨ç½²iis服å*¡å™¨ã€?
是否有windows service host的wcf service与asp.net
ajax协作的解å*³æ–¹æ¡ˆ ¼Ÿè°¢è°¢ã€?

Jul 30 '08 #3
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的资æ?
™ï¼Œå¹¶ä¸”下载äº*相 º”çš„sample
>>
code,ä½*æ˜¯å‘çŽ°è¿™äº sample基本ä¸*
ƒ½éœ€è¦åœ¨iisä¸*éƒ¨ç½²ä¸ ä¸ªsvcæ?
>
‡ä»¶ï¼Œä½*是?¹æ®å½“å‰ ä¸šå*¡éœ€æ±
,我们æ?法部署iisæ œå*¡å™¨ã€?
>是否有windows service host的wcf service与asp.net
ajax协作的解å*³æ–¹æ¡ˆ ?谢谢ã€?
>

Jul 31 '08 #4
As you said, this also restrict the AJAX method call to remote
applications(webservice or wcf).

But actually I could call the web service in other IIS site by using Ajax.

Do I misunderstand 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协作的蠧£å†³æ–¹æ¡Ë*?è °Â¢Ã¨Â°Â¢Ã£â‚¬?




Jul 31 '08 #5
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协作的蠧£å†³æ–¹æ¡Ë*?è °Â¢Ã¨Â°Â¢Ã£â‚¬?




Jul 31 '08 #6
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协作的蠧£åâ?³æâ
“¹æ¡Ë*?谢è °¢ãâ‚?
>>


Jul 31 '08 #7
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协作的蠧£åâ?³æâ
“¹æ¡Ë*?谢è °¢ãâ‚?
>>


Jul 31 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ThunderMusic | last post by:
Hi, I'm currently stuck with a big problem. I must develop a Windows service and an application to configure it and display what is happening. The problem is not really on the service side, but on...
0
by: tt | last post by:
My mod_python 3.1.4 installation works when Apache 2.0.54 is run in standalone mode (apache -k standalone) but refuses to operate when run as a service (apache -k restart). Logs yield the usual...
7
by: Ollie Riches | last post by:
I am trying to dynamically load an assembly that has a reference to 'Interop.WMEncoderLib.dll' which is a PIA to the windows media player DRM components. When I run the code from a console...
3
by: shodson | last post by:
I have a web service http://localhost/ServiceA/ProxyService.asmx calls http://localhost/ServiceB/Service.asmx And I get an error in ServiceB's method when it calls Invoke() it craps out...
5
by: DarkPearl | last post by:
Bonjour tous, apres avoir crer un service windows avec py2exe, j'ai ce probleme quand je lance le service : voici ce que je trouve dans le journal d'evenement : The instance's SvcRun()...
2
by: MR | last post by:
I need to make a call to a (WCF) service from C++ the C++ app utilizes an unmanaged library that receives a callback when an event occurs. when the callback is called, I need to access a WCF...
4
by: jake | last post by:
Can someone please give me an example on how to call a wcf method that resides on a different domain from JavaScript (not from C#/asp.net)? All the examples that I have seen show how to call from...
0
by: satish kumar | last post by:
Hello! We have a situation where in we're developing a WCF Intermediatery service, which would handle calls between Callers (could be asp.net wcf clients) and External Services (mostly WCF...
1
by: Nadeem Ashraf | last post by:
Hi, We are developing a web based application "UltraLearn.com" with a mix of junior/senior Microsoft technologies. That includes Microsoft Silverlight, ASP.Net Ajax and WCF/WF. Recently, we have...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.