node.js - Nodejs: npm SOAP: unexpected tag in body, args -


"solved": bug in github package

i used read-me of node-soap git have unexpected problem: see 'requestcontext'-tag bellow.


var args = {readenterprisebyphoneme: {"phoneme":"a", "typeofenterprise": "epp", "activefilter":"true"}}; var url = 'http://kbopub-acc.economie.fgov.be/kbopubws030000/services/wskbopub?wsdl'; soap.createclient(url,function(err, client){   client.setsecurity(new soap.wssecurity('username', 'password', 'passworddigest'));   client.addsoapheader({'id': 'c1576d0a-e762-40fe-abf9-ec3f2102650b', 'language': 'nl'});   console.log('log:');   console.log(client.describe().wskbopubservice.wskbopub.readenterprisebyphoneme);   client.wskbopubservice.wskbopub.readenterprisebyphoneme(args, function(err, response){     if(err){         console.log('soap error!');         //console.log(err);     }else{         console.log('soap success!');         console.log(response);     }   }); }); 

with console response (unexpected tags manually flagged):

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"  xmlns:tns="http://economie.fgov.be/kbopub/webservices/v1" xmlns:messages="http://economie.fgov.be/kbopub/webservices/v1/messages">   <soap:header>     <id>c1576d0a-e762-40fe-abf9-ec3f2102650b</id>     <language>nl</language>     <wsse:security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">       <wsu:timestamp wsu:id="timestamp-2015-08-24t22:45:18z">         <wsu:created>2015-08-24t22:45:18z</wsu:created>         <wsu:expires>2015-08-24t22:55:18z</wsu:expires>       </wsu:timestamp>       <wsse:usernametoken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:id="securitytoken-2015-08-24t22:45:18z">         <wsse:username>username</wsse:username>         <wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passworddigest">passwopapassword</wsse:password>         <wsse:nonce encodingtype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#base64binary">y5ap7wca16hcluv0n2weepumaqw=</wsse:nonce>         <wsu:created>2015-08-24t22:45:18z</wsu:created>       </wsse:usernametoken>     </wsse:security>   </soap:header>   <soap:body>     **<messages:requestcontext xmlns:messages="http://economie.fgov.be/kbopub/webservices/v1/messages" xmlns="http://economie.fgov.be/kbopub/webservices/v1/messages">**       <messages:readenterprisebyphoneme>         <messages:phoneme>a</messages:phoneme>         <messages:typeofenterprise>epp</messages:typeofenterprise>         <messages:activefilter>true</messages:activefilter>       </messages:readenterprisebyphoneme>     **</messages:requestcontext>**   </soap:body> </soap:envelope> 

does has idea on why these appear , how avoid these?

are sure problem? maybe node generated in accordance wsdl? can't sure, wsdl address gave not working.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -