You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-soap-client

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-soap-client

SOAP client library

0.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

node-soap-client

SOAP client library for NodeJS.

Install

npm install node-soap-client

Examples

var SoapClient = require('node-soap-client').SoapClient;

new SoapClient({wsdl: 'http://api.metabus.ru/0.0.1/ws/SearchingModule?WSDL'}).init(function(err, metabus) {
    var searchingModule = new metabus.SearchingModule();

    searchingModule.search({geoFilter: {distance: 10}, text: ''}, function(err, result) {
        if (err)
            console.log(err.children[1].text())
        else
            console.log(result);
    });

    // or same request in other syntax
    // searchingModule.search(new metabus.SearchQuery({geoFilter: new metabus.GeoFilter({distance: 10}), text: 'кофе около кремля'}), function(err, result) {...})


    // args can be JSON objects or proxy objects, generated from WSDL

    // service methods signature
    // module.method(arg1, arg2, arg3, success_callback)
    // or module.method({"param1": arg1, "param2": arg2, "param3": arg3}, success_callback)
});

// Basic authorization is supported:
// new SoapClient({
//    wsdl: 'http://api.metabus.ru/0.0.1/ws/SearchingModule?WSDL',
//    authorization: {
//       type: 'Basic',
//       userName: 'Alladin',
//       password: 'open sesame'
//    },
// }).init(function(err, metabus) { ...

Keywords

soap

FAQs

Package last updated on 18 Oct 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts