Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 147609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:48:41+00:00 2026-05-11T08:48:41+00:00

Does somebody know why the output of this code is only : Message Sended

  • 0

Does somebody know why the output of this code is only : ‘Message Sended’ ? The thread of the input channel wait on channel.Recieve().

I have not this problem using basicHttpBinding with IRequest/ReplyChannel !

    static void Main(string[] args)     {         WSHttpBinding binding = new WSHttpBinding();         binding.ReliableSession.Enabled = true;         binding.ReliableSession.Ordered = true;          var messsage = System.ServiceModel.Channels.Message.CreateMessage(MessageVersion.Soap11, 'hello', 'action');         var senderFacto = binding.BuildChannelFactory<IOutputSessionChannel>();         var recieveFacto = binding.BuildChannelListener<IInputSessionChannel>(new Uri('http://localhost:9393'));          senderFacto.Open();         recieveFacto.Open();          var sender = senderFacto.CreateChannel(new System.ServiceModel.EndpointAddress('http://localhost:9393'));         sender.Open();            sender.BeginSend(messsage, (o) =>         {             sender.EndSend(o);             Console.WriteLine('Message Sended');             sender.Close();         },null);          recieveFacto.BeginAcceptChannel((o) =>         {             var channel = recieveFacto.EndAcceptChannel(o);             channel.Open();             var message = channel.Receive();             Console.WriteLine('Message Recieved');         },null);          Console.Read();     } 

Solution Turn off the security on the channel, then change the message version to Soap12Adressing10

binding.Security.Mode = SecurityMode.None; //Turn off the security var messsage = System.ServiceModel.Channels.Message.CreateMessage(MessageVersion.Soap12WSAddressing10, 'hello', 'action'); //Change message version  

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:48:41+00:00Added an answer on May 11, 2026 at 8:48 am

    Here is a quick speculation: security might be in the way. I think WSHttpBinding is secure by default. Try turning off security. If that makes it work, next step to make it work with security involves using BindingParameters to specify that ‘action’ is one of the legal actions for Messages on this channel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Supposed I have a file with Perl-code: does somebody know, if there is a
Can somebody advise me what this code does and how can I convert it
Hey - does somebody know why i get a leak when i use this
Hey, does somebody know, how i can let a sprite explode? a code like
Does somebody know how to recover a never-starting eclipse when the error org.eclipse.swt.SWTError: Item
Does somebody know a Java library which serializes a Java object hierarchy into Java
Does somebody know where I can find a sample of shader (HLSL / CG
Does somebody know how to use the animation which is used to reveal the
Does somebody know how to make private, non-static members in CoffeeScript? Currently I'm doing
Does somebody knows if its possible to build a T-SQL query to obtain the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.