none
没有终结点在侦听可以接受消息 请问在workflow中 从Service1发送消息到Service2 send活动应如何配置? RRS feed

  • 问题

  • 在workflow中 从Service1发送消息到Service2 

    Service1如下

    <WorkflowService mc:Ignorable="sap" ConfigurationName="Service1" sap:VirtualizedContainerService.HintSize="870,1058" Name="Service1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://tempuri.org/" xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:ssa="clr-namespace:System.ServiceModel.Activities;assembly=System.ServiceModel.Activities" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
      <sap:WorkflowViewStateService.ViewState>
        <scg3:Dictionary x:TypeArguments="x:String, x:Object">
          <x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
        </scg3:Dictionary>
      </sap:WorkflowViewStateService.ViewState>
      <p1:Sequence DisplayName="Sequential Service" sad:XamlDebuggerXmlReader.FileName="E:\Users\WOLF\Documents\Visual Studio 2010\Projects\MyDeclarativeServiceLibrary\DeclarativeServiceLibrary1\Service1.xamlx" sap:VirtualizedContainerService.HintSize="840,1028" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
        <p1:Sequence.Variables>
          <p1:Variable x:TypeArguments="CorrelationHandle" Name="handle" />
          <p1:Variable x:TypeArguments="x:Int32" Name="data" />
        </p1:Sequence.Variables>
        <sap:WorkflowViewStateService.ViewState>
          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg3:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <Receive x:Name="__ReferenceID3" CanCreateInstance="True" DisplayName="ReceiveRequest" sap:VirtualizedContainerService.HintSize="818,94" OperationName="GetData" ServiceContractName="p:IService">
          <Receive.CorrelationInitializers>
            <RequestReplyCorrelationInitializer CorrelationHandle="[handle]" />
          </Receive.CorrelationInitializers>
          <ReceiveMessageContent>
            <p1:OutArgument x:TypeArguments="x:Int32">[data]</p1:OutArgument>
          </ReceiveMessageContent>
        </Receive>
        <p1:Flowchart sap:VirtualizedContainerService.HintSize="818,636">
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <x:Boolean x:Key="IsExpanded">False</x:Boolean>
              <av:Point x:Key="ShapeLocation">270,2.5</av:Point>
              <av:Size x:Key="ShapeSize">60,75</av:Size>
              <x:Double x:Key="Width">804</x:Double>
              <av:PointCollection x:Key="ConnectorLocation">300,77.5 300,107.5 300,112.5</av:PointCollection>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <p1:Flowchart.StartNode>
            <x:Reference>__ReferenceID2</x:Reference>
          </p1:Flowchart.StartNode>
          <p1:FlowDecision x:Name="__ReferenceID2" Condition="[data = 200]" sap:VirtualizedContainerService.HintSize="60,75">
            <sap:WorkflowViewStateService.ViewState>
              <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                <av:Point x:Key="ShapeLocation">270,112.5</av:Point>
                <av:Size x:Key="ShapeSize">60,75</av:Size>
                <av:PointCollection x:Key="FalseConnector">330,150 438.5,150 438.5,269</av:PointCollection>
                <av:PointCollection x:Key="TrueConnector">270,150 171.5,150 171.5,279</av:PointCollection>
              </scg3:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <p1:FlowDecision.True>
              <p1:FlowStep x:Name="__ReferenceID0">
                <sap:WorkflowViewStateService.ViewState>
                  <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                    <av:Point x:Key="ShapeLocation">50,279</av:Point>
                    <av:Size x:Key="ShapeSize">243,59</av:Size>
                  </scg3:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <p1:Assign sap:VirtualizedContainerService.HintSize="243,59">
                  <p1:Assign.To>
                    <p1:OutArgument x:TypeArguments="x:Int32">[data]</p1:OutArgument>
                  </p1:Assign.To>
                  <p1:Assign.Value>
                    <p1:InArgument x:TypeArguments="x:Int32">100</p1:InArgument>
                  </p1:Assign.Value>
                </p1:Assign>
              </p1:FlowStep>
            </p1:FlowDecision.True>
            <p1:FlowDecision.False>
              <p1:FlowStep x:Name="__ReferenceID1">
                <sap:WorkflowViewStateService.ViewState>
                  <scg3:Dictionary x:TypeArguments="x:String, x:Object">
                    <av:Point x:Key="ShapeLocation">310,269</av:Point>
                    <av:Size x:Key="ShapeSize">257,94</av:Size>
                  </scg3:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <Send EndpointAddress="[New Uri(&quot;http://localhost/3244/Service2.xamlx&quot;)]" sap:VirtualizedContainerService.HintSize="257,94" OperationName="SendToService" ServiceContractName="p:IService2">
                  <Send.Endpoint>
                    <Endpoint>
                      <Endpoint.Binding>
                        <BasicHttpBinding Name="basicHttpBinding" />
                      </Endpoint.Binding>
                    </Endpoint>
                  </Send.Endpoint>
                  <SendMessageContent>
                    <p1:InArgument x:TypeArguments="x:Int32">[data]</p1:InArgument>
                  </SendMessageContent>
                </Send>
              </p1:FlowStep>
            </p1:FlowDecision.False>
          </p1:FlowDecision>
          <x:Reference>__ReferenceID0</x:Reference>
          <x:Reference>__ReferenceID1</x:Reference>
        </p1:Flowchart>
        <SendReply Request="{x:Reference __ReferenceID3}" DisplayName="SendReplyToReceiveRequest" sap:VirtualizedContainerService.HintSize="818,94">
          <SendMessageContent>
            <p1:InArgument x:TypeArguments="x:Int32">[data]</p1:InArgument>
          </SendMessageContent>
        </SendReply>
      </p1:Sequence>
    </WorkflowService>

     

    Service2如下

    <WorkflowService mc:Ignorable="sap" ConfigurationName="Service2" sap:VirtualizedContainerService.HintSize="309,382" Name="Service2" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://tempuri.org/" xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
      <p1:Sequence DisplayName="Sequential Service" sad:XamlDebuggerXmlReader.FileName="E:\Users\WOLF\Documents\Visual Studio 2010\Projects\MyDeclarativeServiceLibrary\DeclarativeServiceLibrary1\Service2.xamlx" sap:VirtualizedContainerService.HintSize="279,352" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
        <p1:Sequence.Variables>
          <p1:Variable x:TypeArguments="CorrelationHandle" Name="handle" />
          <p1:Variable x:TypeArguments="x:Int32" Name="data" />
        </p1:Sequence.Variables>
        <sap:WorkflowViewStateService.ViewState>
          <scg3:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg3:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <Receive x:Name="__ReferenceID0" CanCreateInstance="True" DisplayName="ReceiveRequest" sap:VirtualizedContainerService.HintSize="257,94" OperationName="GetData" ServiceContractName="p:IService2">
          <Receive.CorrelationInitializers>
            <RequestReplyCorrelationInitializer CorrelationHandle="[handle]" />
          </Receive.CorrelationInitializers>
          <ReceiveMessageContent>
            <p1:OutArgument x:TypeArguments="x:Int32">[data]</p1:OutArgument>
          </ReceiveMessageContent>
        </Receive>
        <SendReply Request="{x:Reference __ReferenceID0}" DisplayName="SendResponse" sap:VirtualizedContainerService.HintSize="257,94">
          <SendMessageContent>
            <p1:InArgument x:TypeArguments="x:String">[data.ToString()]</p1:InArgument>
          </SendMessageContent>
        </SendReply>
      </p1:Sequence>
    </WorkflowService>

     

    请问下 错误在哪里?总是错误 没有终结点在侦听可以接受消息

    2011年6月13日 4:44

全部回复