title: NodeJS express SOAP
body: <p>I'm consuming a soap request with express and bodyparser, however the request is not properly formatted on consumption i.e the first equals (=) sign is converted to colon (:) i.e </p>
  
  <p>Below is my code:</p>
  
  <pre><code>var express = require("express");
  var app = express();
  var bodyParser = require("body-parser");
  require('body-parser-xml')(bodyParser);
  
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.xml());
  
  app.get('/',function(req,res){
    res.send("hello");
  });
  
  app.post('/soap',function(req,res){
    req.setEncoding('utf8');
    var request = req.body;
    console.log(request);
  
    res.end("yes");
  });
  
  var server = app.listen(3000, function () {
    var host = server.address().address
    var port = server.address().port
    console.log("App listening at http://%s:%s", host, port)
  })
  </code></pre>