How to visit wcf service via endpoint address?

I created a wcf service by creating a wcf application project using VS2013. My service contract is IWCFService,and I have a implement of IWCFService called WCFService [ServiceContract] public interface IWCFService { [OperationContract] void DoWork(); } public class WCFService : IWCFService { public void DoWork() { //do something

如何通过终端地址访问wcf服务?

我使用VS2013创建了一个wcf应用程序项目,创建了一个wcf服务。 我的服务合同是IWCFService,并且我有一个名为WCFService的IWCFService实现 [ServiceContract] public interface IWCFService { [OperationContract] void DoWork(); } public class WCFService : IWCFService { public void DoWork() { //do something } } 我的服务配置如下: <sys

c# Call Workflow Service by HttpRequest without Add Service Reference

I am trying to call a Workflow Service from an ASP .NET project without adding a Service Reference to my asp .net project. I found an example on how to call a web service without adding it as a service and i changed it according to my workflow service requeirements. Is it possible to make it work ? public void Execute() { HttpWebRequest request = CreateWebRequest(); XmlDocument soa

c#通过HttpRequest调用工作流服务而无需添加服务引用

我正在尝试从ASP .NET项目调用工作流服务,而无需向我的asp.net项目添加服务引用。 我找到了一个关于如何调用Web服务而不将其作为服务添加的示例,并且根据我的工作流服务要求对其进行了更改。 是否有可能使其工作? public void Execute() { HttpWebRequest request = CreateWebRequest(); XmlDocument soapEnvelopeXml = new XmlDocument(); soapEnvelopeXml.LoadXml(@"<?xml version=""1.0"" encoding="

Default wcf service application has no endpoint defined

I just created a new WCF Service Application project in VS2010 (Premium), and it works out-of-the-box, but when I opened up the web.config file there are no endpoints present. The application works fine and I can open the address (http://localhost:50639/Service1.svc?wsdl) in a browser and I can see the contract and it all looks fine. So my question is if the default project has uses a differen

默认的wcf服务应用程序没有定义端点

我刚刚在VS2010(Premium)中创建了一个新的WCF服务应用程序项目,并且它可以直接使用,但是当我打开web.config文件时,没有端点存在。 该应用程序工作正常,我可以在浏览器中打开地址(http:// localhost:50639 / Service1.svc?wsdl),我可以看到合同,它看起来都很好。 所以我的问题是,如果默认项目使用不同的方法,而不是将信息放在web.config中? 我在代码中也看不到任何东西。 为了显示我的观点,这是web.config

"type not defined" exception with WF4 RC

I`m gettin the following exception while invoking my workflow (dynamically): The following errors were encountered while processing the workflow tree: 'DynamicActivity': The private implementation of activity '1: DynamicActivity' has the following validation error: Compiler error(s) encountered processing expression "TryCast(simplerule_out,OutputBase2)". Type 'Out

WF4 RC的“类型未定义”异常

我在调用我的工作流时(动态地)开始了以下异常: 处理工作流树时遇到以下错误:'DynamicActivity':活动'1:DynamicActivity'的私有实现具有以下验证错误:编译器错误遇到处理表达式“TryCast(simplerule_out,OutputBase2)”。 类型'OutputBase2'未定义。 'DynamicActivity':活动'1:DynamicActivity'的私有实现具有以下验证错误:编译器错误遇到处理表达式“Res”。 类型'O

WF4: Workflow stay locked

I've an application that host WF4 workflow in IIS using WorkflowApplication The workflow is defined by user (using a rehosted workflow designer) and the xml is stored in the database. Then, depending on user actions using the application, an xml is selected in database and the workflow are created / resumed. My problem is: when the workflow reach a bookmarks and go idle, it stay locked f

WF4:工作流保持锁定状态

我有一个使用WorkflowApplication在IIS中托管WF4工作流的应用程序 工作流由用户定义(使用重新主办的工作流设计器),并将xml存储在数据库中。 然后,根据使用应用程序的用户操作,在数据库中选择xml并创建/恢复工作流程。 我的问题是:当工作流程达到书签并闲置时,它会保持锁定不同的时间。 然后,如果用户尝试对此工作流程进行其他操作,我得到以下异常: InstancePersistenceCommand的执行被中断,因为实例“52da4562

Hosting Workflows with WorkflowServiceHost

Ok, so I may be approaching this incorrectly but essentially I'm trying to play with new WF services in 4.0 to build up to a Windows service that hosts a WF service. At the moment I have constructed client (containing a simple Activity XAML) and service (WF service implemented in a XAMLX file) projects. I have tried simple "hello worlds" for each one. The client has been hosted

使用WorkflowServiceHost托管工作流程

好的,所以我可能会错误地处理这个问题,但本质上我试图在4.0中使用新的WF服务来构建一个承载WF服务的Windows服务。 目前我已经构建了客户端(包含一个简单的Activity XAML)和服务(在XAMLX文件中实现了WF服务)项目。 我为每一个尝试过简单的“你好世界”。 客户端已被托管在WorkflowApplication ,我最初将该服务设置为默认的WF服务项目模板。 在那里似乎都很好。 由于我想在没有IIS的情况下托管一项服务,因此我的下一

Specifying runtime address for WCF service via config

I've created a WCF library using VS2010 C#, made reference to it from other project, everithing works fine on designtime. But on runtime, as I understand it, it uses different address. So, how can I specify it? My App.Config looks like: <system.web> <compilation debug="true" /> </system.web> <system.serviceModel> <services> <service na

通过config指定WCF服务的运行时地址

我已经使用VS2010 C#创建了一个WCF库,从其他项目引用它,在设计时工作正常。 但在运行时,据我了解,它使用不同的地址。 那么,我该如何指定它? 我的App.Config如下所示: <system.web> <compilation debug="true" /> </system.web> <system.serviceModel> <services> <service name="WcfService.Service1"> <host> <baseAddresses&

XAMLX Workflow with c# expressions

I'm developing a self host workflow in vs2012/.Net 4.5/WF 4.5 and having quite a hard time figuring out the following message Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled. This error happens when i call a activity generated by a service reference (When you add a WCF service reference, each action

XAMLX工作流与C#表达式

我正在vs2012 / .Net 4.5 / WF 4.5中开发一个自主主机工作流程,并且很难找出以下消息 表达式活动类型'CSharpValue`1'需要编译才能运行。 请确保工作流程已编译完成。 当我调用由服务引用生成的活动时发生此错误(当您添加WCF服务引用时,端点上的每个操作都变为活动)。 浏览MSDN我遇到了这些文章: http://msdn.microsoft.com/en-us/library/ee358749.aspx http://msdn.microsoft.com/en-us/library/29110b

WF4 Goto or Run Activity if a Condition is met

I have a WF4 with a Sequence of Activities. CalculateTaxesActivity CreateOrderActivity CreditCardAuthorizationActivity and 10 more Activities... I need to not terminate, cancel or abort but to move from the CreditCardAuthorizationActivity to the "SendReply" message at the End of the Workflow if certain conditions are met within the mentioned Activity. I'm using the Workf

如果条件满足,WF4转到或运行活动

我有一个活动序列的WF4。 CalculateTaxesActivity CreateOrderActivity CreditCardAuthorizationActivity 还有10个活动...... 如果在所提到的活动中满足某些条件,我不需要终止,取消或中止,而是从CreditCardAuthorizationActivity移动到工作流程结束时的“SendReply”消息。 我在VS2010中使用工作流设计器。 谢谢! 您无法跳转到工作流程中其他位置的随机活动。 然而,你可以做的是创建一个自定义序列,如活动

How to Suspend a Workflow (Declarative Service Library) Service?

Scenario DeclarativeServiceLibrary[FlowChart] with Two Recieve - Send Reply Activities persistence enabled and working WebApplication "Service Reference" is above mentioned declarative service library Question Is there anyway to Suspend workflow after receiving reply from first activity ? Whether it is possible via exposed WCF Service method? You can do so by adding a

如何暂停工作流(声明式服务库)服务?

脚本 DeclarativeServiceLibrary [流程图] 与两个Recieve - 发送回复活动 持久性启用和工作 Web应用程序 “服务参考”就是上面提到的声明式服务库 题 无论如何,在接收到第一次活动的回复后暂停工作流程? 是否可以通过公开的WCF服务方法? 您可以通过将WorkflowControlEndpoint添加到工作流服务来完成此操作。 在客户端使用WorkflowControlClient,使用工作流实例ID暂停或中止工作流实例。 详情请看这里。