How to consume WCF soap web service in node.js RRS feed

  • Question

  • Hi,

    I tried the following code.

    var BasicHttpBinding = require('wcf.js').BasicHttpBinding
      , Proxy = require('wcf.js').Proxy
      , binding = new BasicHttpBinding()
      , proxy = new Proxy(binding, "")
      , message =  "<Envelope xmlns=''>" +
                         "<Header />" +
                           "<Body>" +
                             "<GetCitiesByCountry xmlns=''>" +
                               "<Country>KOREA</Country>" +
                             "</GetCitiesByCountry>" +
                            "</Body>" +
    proxy.send(message,"", function(response, ctx) {

    But getting error like

    <s:Envelope xmlns:s=""><s:Body><s:Fault><faultcode xmlns:a="">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>

    Any help on this will be really helpful.


    Monday, March 25, 2013 9:25 AM


All replies