0
即时通讯工作在NodeJS和XML服务SOAP。在NodeJS中调用JSON的奇怪字段
要调用soap,我使用strong-soap并使用xml2js在JSON中转换XML。
所有准备工作好,响应节目,如:
{ 'SOAP-ENV:Envelope': { '$':
{ 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/',
'xmlns:ns1': 'http://sandbox.coordinadora.com/agw/ws/guias/1.5/server.php',
'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema',
'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/',
'SOAP-ENV:encodingStyle': 'http://schemas.xmlsoap.org/soap/encoding/' },
'SOAP-ENV:Body': [ [Object] ] } }
但在JavaScript我可以叫response.SOAP-ENV:身体,因为给我的错误。 我能做些什么来处理这些数据?
非常感谢! –