Monday, March 01, 2010 7:36 AMI saw that the cep is a web service in the TD of CEPM,however,after I finished installing the StreamInsight,I cannot find this web service(http://myserver/StreamInsight), I want to know how to make this web service available?
Another question: how to deploy a stand-alone server?
Monday, March 01, 2010 8:43 AMNo, as far as I know it's not available as a web service. You have to use the API that came with the product. Documentation, samples and binaries are by default located in "C:\Program Files\Microsoft StreamInsight November CTP".
To deploy stand-alone server, in the November CTP you just need to copy StreamInsightHost.exe, CepMetadata.sdf and the DLL:s, but I guess that will change in the RTM version.
Monday, March 01, 2010 9:20 AM
There are such sentences in "Microsoft Complex Event Processing Overview"->Planning and Architecture->CEP Server Deployment Models->Stand-alone Server Deployment:
"The stand-alone server deployment can use the StreamInsightHost.exe as the server host. Applications written against a stand-alone CEP server must follow the explicit server development model and must connect to the CEP server by using the Web service URI of the CEP server host process."
Here we only need to run the StreamInsightHost.exe to set up a stand-alone server,right?But what's the Web service URI of the CEP server host process?It seems that it should be http://server/StreamInsight,but I cannot access that through IE.
Monday, March 01, 2010 10:21 AMYes, you only need to run StreamInsightHost.exe. The URI is by default http://server/StreamInsight, but I think there is no way to connect from IE. Instead you pass that URI as a parameter when you connect from the API. The "explicit server development model" means you have to use the API (as I understand it).
I've published an example of how to do this at http://streaminsightexample.codeplex.com. Download and look at "StockInsightRemoteHost" in the solution.
Tuesday, March 02, 2010 1:49 AMOK,I'll have a try,thank you very much!
Tuesday, March 09, 2010 4:40 PMMaybe there is a misunderstanding between "web server" and "web service". The StreamInsightHost.exe indeed exposes a web service, based on WCF and SOAP. You can use the StreamInsight API to write a client (Server.Connect) or you can write a corresponding client yourself, in any OS and language, as long as it speaks SOAP.
MS StreamInsight Team
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
Wednesday, March 10, 2010 9:29 AMYes, that's probably the reason for the misunderstanding.
I made a few changes to the StreamInsightHost.exe.config file, and now it works fine to connect to the web service from e g Internet Explorer.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="NewBinding0" hostNameComparisonMode="Exact"> <security mode="None" /> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfiguration="ServiceBehavior" name="Microsoft.ComplexEventProcessing.ManagementService.ManagementService"> <host> <baseAddresses> <add baseAddress="http://localhost/StreamInsight" /> </baseAddresses> </host> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="NewBinding0" contract="Microsoft.ComplexEventProcessing.ManagementService.IManagementService" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ServiceBehavior"> <serviceMetadata httpGetEnabled="true" httpGetUrl=""/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> <appSettings> <add key="CreateSqlCeMetadataFileIfMissing" value="true"/> <add key="SQLCEMetadataFile" value="CepMetadata.sdf"/> </appSettings> <runtime> <gcServer enabled="true"/> </runtime> </configuration>
- Marked As Answer by Roman SchindlauerMicrosoft Employee Wednesday, March 17, 2010 5:15 AM