yaronn / wcf.js

A WCF-compatible web service client stack for node.js. Written in pure javascript!
http://webservices20.blogspot.com/
108 stars 26 forks source link

wshttpbinding its not working ? #28

Open AnandanRajkumar opened 5 years ago

AnandanRajkumar commented 5 years ago
 var WSHttpBinding = require('wcf.js').WSHttpBinding
   , Proxy = require('wcf.js').Proxy
   , binding = new WSHttpBinding(
         { SecurityMode: "None"    
         })
   , proxy = new Proxy(binding,
   ,"http://xxxcxcxcxx.ddd:170/getdata.svc")
   , message =  "<Envelope xmlns='http://schemas.xmlsoap.org/soap/envelope/'>" +                  "<Header />" +
                    "<Body>" +
                     "<intiallizeconnection xmlns='http://tempuri.org/'>" +
                        "<con>DB</con>" +
                      "</intiallizeconnection>" +
                    "</Body>" +
                "</Envelope>"
 proxy.send(message, "http://tempuri.org/Igetdata/intiallizeconnection", function(response, err) {
   console.log(response)
  if(!err){
    res.send({})
  }else{
     console.log(err)
     res.send({})
   }
 });

please any one help me to make this work. Thanks