LoginSignup
0
0

More than 5 years have passed since last update.

node-soapで"Unexpected wrapper element xxx found"と出たときの対処

Posted at

問題

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) {
  // ...
});

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0