Facing Issue in using WSDL SOAP in node.js. Soap asking for username and password

January 24, 2018, at 10:52 PM

I'm trying to access SOAP WSDL using node.js. I have used node-soap for this purpose. I have successfully accessed function using wsdl file. But I'm struggling to make the function work since they need username and password. I have tried SOAPUI for testing and API's are working fine. This is how SOAP UI is sending the data:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dto="http://dto.transaction.partner.pg.systems.com/" xmlns:dto1="http://dto.common.pg.systems.com/">

And how I'm sending data from node

soap.createClient(url, function(err, client) {
var args = {
            username: "testuser",
            orderId: "quenoo11",//payload.orderId,
            transctionType: "MA",//payload.transctionType, // 'MA' for transition through Mobile Account || 'OTC' for transition through Over The Counter Transactions ,
            msisdn:"03458578366",//payload.msisdn, // In case of OTC
            mobileAccountNo: "03343222053",//payload.mobileAccountNo, //In case MA
            emailAddress: 'someone@example.com'
            client.setSecurity(new soap.BasicAuthSecurity('testuser','c87sdd76787fff'));
            client.initiateTransaction(args, function(err, result) {
                    content: 'New Transition added',
                    message: result,
                    status: 200

I have tried both options by sending username and password in arg and using setSecurity function. but its not working.

Changing icon images with the switch statement

Changing icon images with the switch statement

Depending on a notification type, I need to change icon image of this notificationThere are three types of notifications

Canvas code not updating and I&#39;m not sure why

Canvas code not updating and I'm not sure why

I'm trying to make a simple canvas program where the user clicks to create bouncing moving circlesIt keeps freezing but still creates the circles without updating

PHP update query does not execute, popup form closes

PHP update query does not execute, popup form closes

I am creating a webshop for schoolI got a problem when editing existing products that are stored in my mysql database