問題
node-soapを使ってSOAPリクエストを投げると"Unexpected wrapper element xxx found"が発生してリクエストに失敗する。
解決策
デフォルトの無視するnamespaceをオーバーライドすると解決するかも。
var soap = require('soap');
var wsdl = 'http://example.com/?wsdl'
// オーバライド
var options = {
ignoredNamespaces: {
namespaces: [],
override: true
}
}
// optionsを引数に指定
soap.createClient(wsdl, options, function(err, client) {
// ...
});