title: How can I implement WS-Security at JQuery end?
body: <p>I followed this codeproject <a href="http://www.codeproject.com/Articles/311908/Calling-WCF-service-exposed-with-different-binding" rel="nofollow">sample</a>.<br>
  At the <strong>Consuming the Service Exposed with wsHttpBinding in JQuery</strong> section it's written that:  </p>
  
  <blockquote>
    <p>A service exposed with “wsHttpBinding” binding implements WS-Security
    of WS-* family of web service specifications. As the binding uses
    security, the request will be rejected. The service cannot be called
    without implementing WS-Security at JQuery end. So, in order to call
    the service method, we have to compromise with the security.</p>
  </blockquote>
  
  <p>and they are implementing a Non-secure <code>&lt;wsHttpBinding&gt;</code> Endpoint.</p>
  
  <p>But I want my <code>&lt;wsHttpBinding&gt;</code> will be <code>&lt;security mode="Message"&gt;</code>,<br>
  This off-course doesn't works and returning the following error:  </p>
  
  <blockquote>
    <p>The message could not be processed. This is most likely because the
    action
    'http://www.enghouse.com/CosmoCom/WebAdminAPIServiceLibrary/IQueue/GetAllQueues'
    is incorrect or because the message contains an invalid or expired
    security context token or because there is a mismatch between
    bindings. The security context token would be invalid if the service
    aborted the channel due to inactivity. To prevent the service from
    aborting idle sessions prematurely increase the Receive timeout on the
    service endpoint's binding.</p>
  </blockquote>
  
  <p>If I will change this to <code>&lt;security mode="None"&gt;</code> it works perfectly.  </p>
  
  <p>So my question is how can I implement <code>&lt;security mode="Message"&gt;</code>?<br>
  What I need to do?</p>
  
  <p>Thanks! </p>