Thursday, 16 March 2017

Node JS Soap Request

please help me with node-soap package. I need call soap request and i dont know how set args object.

I need call this:

<cusrequest typ="search" ip="188.167.181.94" usr="test" pwd="test" lng="sk">
    <search typ="car" trt="p" sub="all">
        <view tfm="tour"></view>
        <date vnd="16.03.2017" bsd="16.05.2017" tdc="" tdm="6" tdx="15" fmt="dmy"></date>
        <dynfilter flt=""></dynfilter>
        <keyword bea="0" ben="0" chf="0" clb="0" ani="0" spt="0" wel="0" pol="0" ipl="0"></keyword>
    </search>
</cusrequest>

My JS code:

soap.createClient(wsdlUrl, function(err, soapClient){
      soapClient.Test(args, function(err, result) {
              console.log(result);
          });
    });

I need help with write args variable. How to write this request? Or how to post html template to soapclient.

Thanks a lot



via Thomas

No comments:

Post a Comment