Which node-soap and soap version are you using?

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Fayez Asar
Sent: Saturday, November 29, 2014 8:13 PM
To: [email protected]
Subject: [nodejs] node-soap: TypeError: Object [object Object] has no method 
'CreateMerchantAccount'

 

Hello,

 

I'm new to Node.  From my nodejs code, I need to make a SOAP call.

 

I’m working on automating onboarding of a new merchant into the CreditCall 
system.  Nigel provided me with the necessary documentation last Friday and I 
started on the project today.

Here is my Node code snippet:

  var url = ' <https://'> https://' + username + ':' + password + '@' + host + 
'/SOAP.asmx?wsdl';

  soap.createClient(url, function(err, client) {
    console.log(err);
    client.setSecurity(new soap.BasicAuthSecurity(username, password));
    client.CreateMerchantAccount(args, function(err, result) {                  
                                                                                
        
      console.log(result);                                                      
                                                                                
                                          
      console.log(err);                                                         
                                                                                
                                          
    });
  });

This gave the following error:
TypeError: Object [object Object] has no method 'CreateMerchantAccount'

So clearly there is something wrong with the client.CreateMerchantAccount() 
line.

So I executed client.describe() and it returned:

{
    HttpServerWebService: {
        HttpServerWebServiceSoap: {
            Call: [ Object ],
            CallNameValue: [ Object ]
        },
        HttpServerWebServiceSoap12: {
            Call: [ Object ],
            CallNameValue: [ Object ]
        }
    }
}

This doesn't seem to give me enough clue about what the exact call should be.  
Any ideas on what I'm doing wrong?

Thanks!

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/ecf10fdc-021c-4832-9908-c723c0cb1b54%40googlegroups.com
 
<https://groups.google.com/d/msgid/nodejs/ecf10fdc-021c-4832-9908-c723c0cb1b54%40googlegroups.com?utm_medium=email&utm_source=footer>
 .
For more options, visit https://groups.google.com/d/optout.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/547c7882.83deec0a.753a.ffffe82a%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to