LCS使用RTC API 发送IM消息的WebService
2005-12-29 10:23
309 查看
微软LCS 2005 With SP1 发布也有一段时间了。
1。准备工作:安装RTC Client API
http://msdn.microsoft.com/downloads/list/clientapi.asp
重要:请安装同时1.2和1.3 ,安装完下载后的MSI包之后,而且要运行
:\Program Files\RTC Client API v1.2 SDK\INSTALLATION\RtcApiSetup.exe
:\Program Files\RTC Client API v1.3 SDK\INSTALLATION\RtcApiSetup.exe
:\Program Files\RTC Client API v1.3 SDK\INSTALLATION\RtcSxSPolicies.msi
以上3个全部要安装,不是说安装1.3就不需要安装1.2了,而且要按照这个顺序,否则可能不能成功。
最好重新启动电脑吧,(把WebService发布到服务器时候记得也要在服务器上面安装哦)
2:编写Lib
using System;
using System.Collections.Generic;
using System.Text;
namespace CMS.LCSLib
3:编写WebService
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class RTCClass : System.Web.Services.WebService
关于RTCCORELib.dll 引用问题
++++++++++++++++++++++++++++++++++++++++
在项目里面引用DLL的时候,
路径可能是:C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Networking.RtcDll_6595b64144ccf1df_5.2.2.1_x-ww_d6bd8b93\RTCCORELib.dll
你在\WINDOWS\WinSxS\x86_Microsoft.Windows.Networking.RtcDll_XXXXX之类的目录里面找就可以,
你也可以搜索RTCCORELib.dll
注意在SDK安装的时候,要关闭其它程序,尤其是Messager之类的,否则可能会造成找不到RTCCORELib.dll
1。准备工作:安装RTC Client API
http://msdn.microsoft.com/downloads/list/clientapi.asp
Microsoft Windows Real-Time Communications Client API SDK v1.3 The Microsoft Windows Real-Time Communications Software Development Kit 1.3 provides information, samples, and tools regarding the additional features of the Real-Time Communications 1.3 API. Additional features include: enhanced multiple points of presence support, support for Microsoft Office Live Communications Server 2005, additional client security options, and marshalling support. | |
Microsoft Real-time Communications Client Software Development Kit (SDK) v1.2 The Microsoft Real-time Communications Client SDK provides documentation, sample code and other tools that allow developers to build real-time communication applications, or integrate real-time communication functionality into existing applications. Note: To execute samples or applications upon any development or test machine, install the SDK and then run RTCAPISETUP.EXE to install the Microsoft Real-time Communications Client API binaries. This executable can be found within the "Installation" sub-directory. | |
重要:请安装同时1.2和1.3 ,安装完下载后的MSI包之后,而且要运行
:\Program Files\RTC Client API v1.2 SDK\INSTALLATION\RtcApiSetup.exe
:\Program Files\RTC Client API v1.3 SDK\INSTALLATION\RtcApiSetup.exe
:\Program Files\RTC Client API v1.3 SDK\INSTALLATION\RtcSxSPolicies.msi
以上3个全部要安装,不是说安装1.3就不需要安装1.2了,而且要按照这个顺序,否则可能不能成功。
最好重新启动电脑吧,(把WebService发布到服务器时候记得也要在服务器上面安装哦)
2:编写Lib
using System;
using System.Collections.Generic;
using System.Text;
namespace CMS.LCSLib
3:编写WebService
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class RTCClass : System.Web.Services.WebService
关于RTCCORELib.dll 引用问题
++++++++++++++++++++++++++++++++++++++++
在项目里面引用DLL的时候,
路径可能是:C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Networking.RtcDll_6595b64144ccf1df_5.2.2.1_x-ww_d6bd8b93\RTCCORELib.dll
你在\WINDOWS\WinSxS\x86_Microsoft.Windows.Networking.RtcDll_XXXXX之类的目录里面找就可以,
你也可以搜索RTCCORELib.dll
注意在SDK安装的时候,要关闭其它程序,尤其是Messager之类的,否则可能会造成找不到RTCCORELib.dll
相关文章推荐
- JavaMail基础知识2-JavaMail API使用之发送消息
- 微信支付java版本之JSAPI支付+发送模板消息
- QUdpSocket简单使用Demo(局域网内发送给所有客户端消息与接收)
- 我的mqtt协议和emqttd开源项目个人理解(12) - Hook使用和连接Kafka发送消息,使用ekaf库
- 使用HTTP发送消息(消息队列技术)
- Java使用JavaMail API发送和接收邮件的代码示例
- WebService大讲堂之Axis2(10):使用soapmonitor模块监视soap请求与响应消息
- WebService 的Interceptor的使用以及SOAP消息形式
- 使用post向webservice发送请求,并且返回值
- activemq使用JMS发送消息和接收消息
- 使用cmd命令向局域网中的某台电脑发送消息
- 使用cmd命令向局域网中的某台电脑发送消息
- 异常信息:CLR无法从COM 上下文0x645e18 转换为COM上下文0x645f88,这种状态已持续60秒。拥有目标上下文/单元的线程很有可能执行的是非泵式等待或者在不发送 Windows 消息的情况下处理一个运行时间非常长的操作.这种情况通常会影响到性能,甚至可能导致应用程序不响应或者使用的内存随时间不断累积
- WebService大讲堂之Axis2(10):使用soapmonitor模块监视soap请求与响应消息
- 使用API函数发送消息关闭程序:WM_CLOSE=0x0010;
- MFC Dialog工程中多线程使用PostMessage发送接收字符串消息并更新界面
- (unix domain socket)使用udp发送>=128K的消息会报ENOBUFS的错误
- ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息
- vc中使用SendMessage正确发送自定义消息的方法
- 使用meclipse查看webservice wsdl soap消息