Unable to send messages to yourself?

It seems to be impossible to send messages back to the sending participant (don't ask me why I want to do that ). When I create a session with only one participant (short-version manifest retrieved from session management console posted below), any messages I sent to the Session containing the correct action produce a 'Zero routed resolved...' message in the Event Log at the Session server. Is it illegal/impossible to send messages to yourself Or to create a Session with only one participant

THE EVENT LOG ENTRY

Timestamp: 12/1/2006 10:49:20 AM

Message: Zero routes resolved for the incoming message - urn:uuid:679cc7dd-5eee-42bf-a95e-492dffa160db

Category: Session OperationalEvent

Priority: 2

EventId: 20146

Severity: Information

Title:Session

Machine: CSF02

Application Domain: /LM/W3SVC/1/Root/Session30-1-128094437294975743

Process Id: 5544

Process Name: c:\windows\system32\inetsrv\w3wp.exe

Win32 Thread Id: 3796

Thread Name:

Extended Properties:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

THE MANIFEST

< xml version="1.0" encoding="utf-16" >
<Session xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" timestamp="2006-12-01T11:45:08.1381993+01:00" timeout="0" persist="None" state="Active" routeAnyAction="true" ackOnRouteMsgToParticipants="false" xmlns="http://Microsoft/ConnectedServices/2006/06/Session/">
<SessionName>silk</SessionName>
<Participants>
<Participant timeout="30" role="Service" inChannelResponse="true" type="WebService">
<SoapVersion>Default</SoapVersion>
<ParticipantName>thisprogram</ParticipantName>
<ParticipantID>thisprogram</ParticipantID>
<ParticipantUrl>soap.tcp://192.168.0.99:5758/820a1d29-517a-4f71-81d9-de7941c5c7f3</ParticipantUrl>
<Actions>
<Action>http://company.com/csf/MobileNumberResponse</Action>
</Actions>
<PolicyDocument>
<Include>
<SecondaryCredentialMap>
<PrimaryCredentialForMessage>None</PrimaryCredentialForMessage>
<PrimaryCredentialForTransport transportAuthenticationType="Ntlm">None</PrimaryCredentialForTransport>
</SecondaryCredentialMap>
</Include>
</PolicyDocument>
</Participant>
</Participants>
<RoutingTable version="0" timestamp="2006-12-01T11:45:08.1381993+01:00">
<Routes>
<Route>
<Criteria>(ACTION EQ 'http://company.com/csf/MobileNumberResponse')</Criteria>
<Destination>thisprogram[http://company.com/csf/MobileNumberResponse]</Destination>
<Intercept />
</Route>
</Routes>
</RoutingTable>
</Session>

THE INPUTTRACE MESSAGE LOG FOR THE MESSAGE

<inputMessage utc="12/1/2006 10:49:20 AM" messageId="urn:uuid:679cc7dd-5eee-42bf-a95e-492dffa160db">
<processingStep description="Unprocessed message">
<env:Envelope xmlns:wsa="
http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<wsa:Action>http://company.com/csf/MobileNumberResponse</wsa:Action>
<wsa:FaultTo>
<wsa:Address>soap.tcp://192.168.0.99:5797/01200de6-aa85-4d8f-988a-037b837bfe15</wsa:Address>
</wsa:FaultTo>
<wsa:From>
<wsa:Address>soap.tcp://192.168.0.99:5797/01200de6-aa85-4d8f-988a-037b837bfe15</wsa:Address>
</wsa:From>
<wsa:MessageID>urn:uuid:679cc7dd-5eee-42bf-a95e-492dffa160db</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>soap.tcp://192.168.0.99:5797/01200de6-aa85-4d8f-988a-037b837bfe15</wsa:Address>
</wsa:ReplyTo>
<wsa:To>http://csf02.thunderstorm.local/Session30/Session.ashx</wsa:To>
<csfse:SessionID xmlns:csfse="
http://Microsoft/ConnectedServices/2006/06/Session/">urn:0acedbad-7de0-4e16-862e-645b69fd34d6</csfse:SessionID>
<wsse:Security env:mustUnderstand="true">
<wsu:Timestamp wsu:Id="Timestamp-63644752-f38c-4df8-8651-5fedf903c1f2">
<wsu:Created>2006-12-01T10:49:36Z</wsu:Created>
<wsu:Expires>2006-12-01T10:54:36Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-161a5465-3c06-4c97-ab4c-86c99bc982bb">
<wsse:Username>user@THUNDERSTORM</wsse:Username>
<wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
<wsse:Nonce>UjCaTdcaVLDVh91jmsUkLQ==</wsse:Nonce>
<wsu:Created>2006-12-01T10:49:36Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</env:Header>
<env:Body>
<MobileNumberResponse xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSche a" xmlns="http://company.com/csf">
<InstanceId>26e4938a-b96f-44ce-a1cd-b0978f1239df</InstanceId>
<UserName>marcel</UserName>
<PhoneNumber>+319000538</PhoneNumber>
</MobileNumberResponse>
</env:Body>
</env:Envelope>
</processingStep>
<processingStep description="Entering SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" />
<processingStep description="Exited SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" />
<processingStep description="Entering SOAP filter Microsoft.ConnectedServices.Sdk.Security.DynamicAssertionServiceInputFilter" />
<processingStep description="Exited SOAP filter Microsoft.ConnectedServices.Sdk.Security.DynamicAssertionServiceInputFilter" />
<processingStep description="Entering SOAP filter Microsoft.ConnectedServices.InternalUtils.TraceFilters.InputTraceFilter" />
<processingStep description="Exited SOAP filter Microsoft.ConnectedServices.InternalUtils.TraceFilters.InputTraceFilter" />
<processingStep description="Entering SOAP filter Microsoft.Web.Services3.Design.AuthorizationAssertion+AuthorizationFilter" />
<processingStep description="Exited SOAP filter Microsoft.Web.Services3.Design.AuthorizationAssertion+AuthorizationFilter" />
<processingStep description="Processed message">
<env:Envelope xmlns:wsa="
http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<csfse:SessionID xmlns:csfse="
http://Microsoft/ConnectedServices/2006/06/Session/">urn:0acedbad-7de0-4e16-862e-645b69fd34d6</csfse:SessionID>
</env:Header>
<env:Body>
<MobileNumberResponse xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://company.com/csf">
<InstanceId>26e4938a-b96f-44ce-a1cd-b0978f1239df</InstanceId>
<UserName>marcel</UserName>
<PhoneNumber>+319000538</PhoneNumber>
</MobileNumberResponse>
</env:Body>
</env:Envelope>
</processingStep>
</inputMessage>



Answer this question

Unable to send messages to yourself?

  • Jun_1111

    No problem in asking though .

    I'm trying to test the speed in which Session receives, processes and forwards received messages. And in my effort to eliminate as much external factors as possible, I was trying to limit it to 2 actors: my test-program (the only participant in the session) and Session itself. But it seems I have to add a third actor to my test case


  • Tom Hollander

    Marcel - That is disabled by design in Session. Session will not route a message to a participant which it recieved from that participant.

    Even though you have said not to ask, I am really interested to know why you want to do that. You could very well have that logic built in the service and reduce one roundtrip.

    Thanks



  • tfrazier

    Unfortunately you need to have 3rd actor to do that.

    Thanks



  • evilsocket

    I've set this property to false and tried it again, but this didn't solve my problem. Still a 'Zero routes resolved' message in the eventlog...
  • MyBoysCanSwim

    How is the method that handles http://company.com/csf/MobileNumberResponse action implemented. If it is oneway, please try by specifing inChannelResponse="false" in the participant manifest.
  • Unable to send messages to yourself?