node.js - Node-soap consuming delphi soap webservice -


i'm using nodejs , node-soap client consume webservice published on iis , developed in delphi. webservice published document/literal style.

on node i'm invoking , logging response of operations this:

        client[functionname](args, function (err, result) {             if (err) {                 console.log(err);             } else {                 console.log(result);             }         }); 

here portion of xml result delphi:

...   <getvaluesresponse xmlns="urn:ws_test">   <res xmlns="urn:utest">     <matrixdata>       <tdoubledynarray>         <double>4.32427893698308</double>         <double>4.40404718921869</double>         <double>4.50060875771443</double>         <double>4.56778202275494</double>         <double>4.61816197153533</double>         <double>4.73991351442126</double>         <double>4.78609513413661</double>         <double>4.8238800957219</double>         <double>4.8238800957219</double>         <double>4.81128510852681</double>         ... 

and json obtained node-soap (response):

  ...  "matrixdata": {       "tdoubledynarray": [         {           "double": [             "4.32427893698308",             "4.40404718921869",             "4.50060875771443",             "4.56778202275494",             "4.61816197153533",             "4.73991351442126",             "4.78609513413661",             "4.8238800957219",             "4.8238800957219",             "4.81128510852681",             ... 

i dont understand why node-soap includes types of data in structure of resulting json. also, don`t understand why arrays parsed json object array inside, instead of array.

is there way ask node-soap include data , arrays simple arrays?

here wsdl portion defines involved:

<element name="matrixdata" type="ns6:tmatofdouble"/>  <complextype name="tmatofdouble">   <complexcontent>     <restriction base="soapenc:array">       <sequence/>       <attribute ref="soapenc:arraytype" n1:arraytype="ns1:tdoubledynarray[]"/>       </restriction>   </complexcontent> </complextype>  <complextype name="tdoubledynarray">   <complexcontent>     <restriction base="soapenc:array">       <sequence/>       <attribute ref="soapenc:arraytype" n1:arraytype="xs:double[]"/>     </restriction>   </complexcontent> </complextype> 

thanks in advance help

it result bug in node-soap library trying fix it.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -