node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Result : Not showing Response Body

Open sharmam-caremonitor opened this issue 6 months ago • 3 comments

@smokhov

After successful response from soap service , I am getting full stack of response including headers instead of only parsed JSON body in result

While printing error object I am getting

TypeError: Cannot read properties of undefined (reading 'description') at SAXParser.p.onopentag (/var/task/node_modules/soap/lib/wsdl/index.js:261:37) at emit (/var/task/node_modules/sax/lib/sax.js:631:35) at emitNode (/var/task/node_modules/sax/lib/sax.js:636:5) at openTag (/var/task/node_modules/sax/lib/sax.js:832:5) at SAXParser.write (/var/task/node_modules/sax/lib/sax.js:1415:13) at WSDL.xmlToObject (/var/task/node_modules/soap/lib/wsdl/index.js:469:11) at parseSync (/var/task/node_modules/soap/lib/client.js:300:33) at /var/task/node_modules/soap/lib/client.js:506:24 at handleBody (/var/task/node_modules/soap/lib/http.js:204:17) at /var/task/node_modules/soap/lib/http.js:236:24 {

sharmam-caremonitor avatar Jun 03 '25 07:06 sharmam-caremonitor

I'll defer to @w666 on this one.

smokhov avatar Jun 03 '25 17:06 smokhov

Looks like WSDL file is not correct. But there is not enough information. Could you provide WSDL files and code snippets how do you run the server and/or client.

w666 avatar Jun 04 '25 08:06 w666

Just realized PR #1205 appears to address exactly this.

smokhov avatar Jun 18 '25 20:06 smokhov

@smokhov, I rebased that PR, but some existing tests failed.

w666 avatar Jul 09 '25 08:07 w666