api - Having trouble understanding how npm soap package works -


i'm using npm soap package connect soap api , call methods, , i'm not grasping how supposed work.

for instance, in api documentation, gives example:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://xxx">     <soapenv:header/>     <soapenv:body>         <ser:setsessionparameters>             <viewsettings>                 <forcelogoutsession>yes</forcelogoutsession>                 <rollingperiod>minutes30</rollingperiod>                 <shiftstart>21600000</shiftstart>                 <statisticsrange>currentday</statisticsrange>                 <timezone>-28800000</timezone>                 <idletimeout>1800</idletimeout>             </viewsettings>         </ser:setsessionparameters>     </soapenv:body> </soapenv:envelope> 

and if use rest tool send content api endpoint, works expected.

in code, if invoke method call:

var x = client.describe(); console.log(x.wssupervisorservice.wssupervisorport.setsessionparameters); 

i response:

{   input: {     viewsettings: {       apptype: 'xs:string',       forcelogoutsession: 'xs:boolean',       rollingperiod: 'rollingperiod|xs:string|minutes5,minutes10,minutes15,minutes30,hour1,hours2,hours3,today',       shiftstart: 'xs:int',       statisticsrange: 'statisticsrange|xs:string|rollinghour,currentday,currentweek,currentmonth,lifetime,currentshift',       timezone: 'xs:int',       targetnsalias: 'tns',       targetnamespace: 'http://xxx'     },     targetnsalias: 'tns',     targetnamespace: 'http://xxx'   },   output: {     targetnsalias: 'tns',     targetnamespace: 'http://xxx'   } } 

but fails:

client.setsessionparameters({   input: {     viewsettings: {       forcelogoutsession: true,       rollingperiod: 'minutes30',       shiftstart: 216000000,       statisticsrange: 'currentday',       timezone: -288000000,       idletimeout: 1800     }   } }); 

...yielding error:

{ [error: env:client: endpoint {http://xxx/}wssupervisorport not contain operation meta data for: setsessionparameters] stack: [getter] }

i'm @ loss here. hugely appreciated!

simply try:

client.setsessionparameters({     viewsettings: {       forcelogoutsession: true,       rollingperiod: 'minutes30',       shiftstart: 216000000,       statisticsrange: 'currentday',       timezone: -288000000,       idletimeout: 1800   } }); 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -