api documentation for soap (v0.19.0)

A minimal node SOAP client

table of contents

  1. module soap
    1. function soap.BasicAuthSecurity (username, password, defaults)
    2. function soap.BearerSecurity (token, defaults)
    3. function soap.Client (wsdl, endpoint, options)
    4. function soap.ClientSSLSecurity (key, cert, ca, defaults)
    5. function soap.ClientSSLSecurityPFX (pfx, passphrase, defaults)
    6. function soap.HttpClient (options)
    7. function soap.Server (server, path, services, wsdl, options)
    8. function soap.WSDL (definition, uri, options)
    9. function soap.WSSecurity (username, password, options)
    10. function soap.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)
    11. function soap.createClient (url, options, callback, endpoint)
    12. function soap.listen (server, pathOrOptions, services, xml)
    13. function soap.nscontext ()
    14. function soap.passwordDigest (nonce, created, password)
    15. object soap.BasicAuthSecurity.prototype
    16. object soap.BearerSecurity.prototype
    17. object soap.Client.prototype
    18. object soap.ClientSSLSecurity.prototype
    19. object soap.ClientSSLSecurityPFX.prototype
    20. object soap.HttpClient.prototype
    21. object soap.Server.prototype
    22. object soap.WSDL.prototype
    23. object soap.WSSecurity.prototype
    24. object soap.WSSecurityCert.prototype
    25. object soap.client
    26. object soap.nscontext.prototype
    27. object soap.security
    28. object soap.server
    29. object soap.soap_stub
    30. object soap.utils
    31. object soap.wsdl
  2. module soap.BasicAuthSecurity
    1. function soap.BasicAuthSecurity (username, password, defaults)
  3. module soap.BasicAuthSecurity.prototype
    1. function soap.BasicAuthSecurity.prototype.addHeaders (headers)
    2. function soap.BasicAuthSecurity.prototype.addOptions (options)
    3. function soap.BasicAuthSecurity.prototype.toXML ()
  4. module soap.BearerSecurity
    1. function soap.BearerSecurity (token, defaults)
  5. module soap.BearerSecurity.prototype
    1. function soap.BearerSecurity.prototype.addHeaders (headers)
    2. function soap.BearerSecurity.prototype.addOptions (options)
    3. function soap.BearerSecurity.prototype.toXML ()
  6. module soap.Client
    1. function soap.Client (wsdl, endpoint, options)
    2. function soap.Client.super_ ()
  7. module soap.Client.prototype
    1. function soap.Client.prototype._defineMethod (method, location)
    2. function soap.Client.prototype._definePort (port, endpoint)
    3. function soap.Client.prototype._defineService (service, endpoint)
    4. function soap.Client.prototype._getArgsScheme (methodName)
    5. function soap.Client.prototype._initializeOptions (options)
    6. function soap.Client.prototype._initializeServices (endpoint)
    7. function soap.Client.prototype._invoke (method, args, location, callback, options, extraHeaders)
    8. function soap.Client.prototype._isSequenceRequired (methodName)
    9. function soap.Client.prototype._setSequenceArgs (argsScheme, args)
    10. function soap.Client.prototype.addBodyAttribute (bodyAttribute, name, namespace, xmlns)
    11. function soap.Client.prototype.addHttpHeader (name, value)
    12. function soap.Client.prototype.addSoapHeader (soapHeader, name, namespace, xmlns)
    13. function soap.Client.prototype.changeSoapHeader (index, soapHeader, name, namespace, xmlns)
    14. function soap.Client.prototype.clearBodyAttributes ()
    15. function soap.Client.prototype.clearHttpHeaders ()
    16. function soap.Client.prototype.clearSoapHeaders ()
    17. function soap.Client.prototype.describe ()
    18. function soap.Client.prototype.getBodyAttributes ()
    19. function soap.Client.prototype.getHttpHeaders ()
    20. function soap.Client.prototype.getSoapHeaders ()
    21. function soap.Client.prototype.setEndpoint (endpoint)
    22. function soap.Client.prototype.setSOAPAction (SOAPAction)
    23. function soap.Client.prototype.setSecurity (security)
  8. module soap.ClientSSLSecurity
    1. function soap.ClientSSLSecurity (key, cert, ca, defaults)
  9. module soap.ClientSSLSecurity.prototype
    1. function soap.ClientSSLSecurity.prototype.addOptions (options)
    2. function soap.ClientSSLSecurity.prototype.toXML (headers)
  10. module soap.ClientSSLSecurityPFX
    1. function soap.ClientSSLSecurityPFX (pfx, passphrase, defaults)
  11. module soap.ClientSSLSecurityPFX.prototype
    1. function soap.ClientSSLSecurityPFX.prototype.addOptions (options)
    2. function soap.ClientSSLSecurityPFX.prototype.toXML (headers)
  12. module soap.HttpClient
    1. function soap.HttpClient (options)
  13. module soap.HttpClient.prototype
    1. function soap.HttpClient.prototype.buildRequest (rurl, data, exheaders, exoptions)
    2. function soap.HttpClient.prototype.handleResponse (req, res, body)
    3. function soap.HttpClient.prototype.request (rurl, data, callback, exheaders, exoptions)
    4. function soap.HttpClient.prototype.requestStream (rurl, data, exheaders, exoptions)
  14. module soap.Server
    1. function soap.Server (server, path, services, wsdl, options)
    2. function soap.Server.super_ ()
  15. module soap.Server.prototype
    1. function soap.Server.prototype._envelope (body, includeTimestamp)
    2. function soap.Server.prototype._executeMethod (options, req, callback, includeTimestamp)
    3. function soap.Server.prototype._initializeOptions (options)
    4. function soap.Server.prototype._process (input, req, callback)
    5. function soap.Server.prototype._processRequestXml (req, res, xml)
    6. function soap.Server.prototype._requestListener (req, res)
    7. function soap.Server.prototype._sendError (soapFault, callback, includeTimestamp)
    8. function soap.Server.prototype.addSoapHeader (soapHeader, name, namespace, xmlns)
    9. function soap.Server.prototype.changeSoapHeader (index, soapHeader, name, namespace, xmlns)
    10. function soap.Server.prototype.clearSoapHeaders ()
    11. function soap.Server.prototype.getSoapHeaders ()
  16. module soap.WSDL
    1. function soap.WSDL (definition, uri, options)
  17. module soap.WSDL.prototype
    1. boolean soap.WSDL.prototype.ignoreBaseNameSpaces
    2. function soap.WSDL.prototype._fromServices (services)
    3. function soap.WSDL.prototype._fromXML (xml)
    4. function soap.WSDL.prototype._initializeOptions (options)
    5. function soap.WSDL.prototype._parse (xml)
    6. function soap.WSDL.prototype._processNextInclude (includes, callback)
    7. function soap.WSDL.prototype._splitQName (nsName)
    8. function soap.WSDL.prototype._xmlnsMap ()
    9. function soap.WSDL.prototype.describeServices ()
    10. function soap.WSDL.prototype.filterOutIgnoredNameSpace (ns)
    11. function soap.WSDL.prototype.findChildSchemaObject (parameterTypeObj, childName)
    12. function soap.WSDL.prototype.findSchemaObject (nsURI, qname)
    13. function soap.WSDL.prototype.findSchemaType (name, nsURI)
    14. function soap.WSDL.prototype.isIgnoredNameSpace (ns)
    15. function soap.WSDL.prototype.objectToDocumentXML (name, params, nsPrefix, nsURI, type)
    16. function soap.WSDL.prototype.objectToRpcXML (name, params, nsPrefix, nsURI, isParts)
    17. function soap.WSDL.prototype.objectToXML (obj, name, nsPrefix, nsURI, isFirst, xmlnsAttr, schemaObject, nsContext)
    18. function soap.WSDL.prototype.onReady (callback)
    19. function soap.WSDL.prototype.processAttributes (child, nsContext)
    20. function soap.WSDL.prototype.processIncludes (callback)
    21. function soap.WSDL.prototype.toXML ()
    22. function soap.WSDL.prototype.xmlToObject (xml, callback)
    23. object soap.WSDL.prototype.ignoredNamespaces
    24. string soap.WSDL.prototype.valueKey
    25. string soap.WSDL.prototype.xmlKey
  18. module soap.WSSecurity
    1. function soap.WSSecurity (username, password, options)
  19. module soap.WSSecurity.prototype
    1. function soap.WSSecurity.prototype.toXML ()
  20. module soap.WSSecurityCert
    1. function soap.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)
  21. module soap.WSSecurityCert.prototype
    1. function soap.WSSecurityCert.prototype.postProcess (xml, envelopeKey)
  22. module soap.client
    1. function soap.client.Client (wsdl, endpoint, options)
  23. module soap.nscontext
    1. function soap.nscontext ()
  24. module soap.nscontext.prototype
    1. function soap.nscontext.prototype.addNamespace (prefix, nsUri, localOnly)
    2. function soap.nscontext.prototype.declareNamespace (prefix, nsUri)
    3. function soap.nscontext.prototype.getNamespaceURI (prefix, localOnly)
    4. function soap.nscontext.prototype.getPrefix (nsUri, localOnly)
    5. function soap.nscontext.prototype.popContext ()
    6. function soap.nscontext.prototype.pushContext ()
    7. function soap.nscontext.prototype.registerNamespace (nsUri)
  25. module soap.security
    1. function soap.security.BasicAuthSecurity (username, password, defaults)
    2. function soap.security.BearerSecurity (token, defaults)
    3. function soap.security.ClientSSLSecurity (key, cert, ca, defaults)
    4. function soap.security.ClientSSLSecurityPFX (pfx, passphrase, defaults)
    5. function soap.security.WSSecurity (username, password, options)
    6. function soap.security.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)
  26. module soap.server
    1. function soap.server.Server (server, path, services, wsdl, options)
  27. module soap.soap_stub
    1. boolean soap.soap_stub.errOnCreateClient
    2. function soap.soap_stub.createClient (wsdlUrl, options, cb)
    3. function soap.soap_stub.createErroringStub (err)
    4. function soap.soap_stub.createRespondingStub (object, body)
    5. function soap.soap_stub.getStub (aliasOrWsdlUrl)
    6. function soap.soap_stub.registerClient (alias, urlToWsdl, clientStub)
    7. function soap.soap_stub.reset ()
    8. object soap.soap_stub.security
  28. module soap.utils
    1. function soap.utils.findPrefix (xmlnsMapping, nsURI)
    2. function soap.utils.passwordDigest (nonce, created, password)
    3. string soap.utils.TNS_PREFIX
  29. module soap.wsdl
    1. function soap.wsdl.WSDL (definition, uri, options)
    2. function soap.wsdl.open_wsdl (uri, options, callback)

module soap

function soap.BasicAuthSecurity (username, password, defaults)

function soap.BearerSecurity (token, defaults)

function soap.Client (wsdl, endpoint, options)

function soap.ClientSSLSecurity (key, cert, ca, defaults)

function soap.ClientSSLSecurityPFX (pfx, passphrase, defaults)

function soap.HttpClient (options)

function soap.Server (server, path, services, wsdl, options)

function soap.WSDL (definition, uri, options)

function soap.WSSecurity (username, password, options)

function soap.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)

function soap.createClient (url, options, callback, endpoint)

function soap.listen (server, pathOrOptions, services, xml)

function soap.nscontext ()

function soap.passwordDigest (nonce, created, password)

module soap.BasicAuthSecurity

function soap.BasicAuthSecurity (username, password, defaults)

module soap.BasicAuthSecurity.prototype

function soap.BasicAuthSecurity.prototype.addHeaders (headers)

function soap.BasicAuthSecurity.prototype.addOptions (options)

function soap.BasicAuthSecurity.prototype.toXML ()

module soap.BearerSecurity

function soap.BearerSecurity (token, defaults)

module soap.BearerSecurity.prototype

function soap.BearerSecurity.prototype.addHeaders (headers)

function soap.BearerSecurity.prototype.addOptions (options)

function soap.BearerSecurity.prototype.toXML ()

module soap.Client

function soap.Client (wsdl, endpoint, options)

function soap.Client.super_ ()

module soap.Client.prototype

function soap.Client.prototype._defineMethod (method, location)

function soap.Client.prototype._definePort (port, endpoint)

function soap.Client.prototype._defineService (service, endpoint)

function soap.Client.prototype._getArgsScheme (methodName)

function soap.Client.prototype._initializeOptions (options)

function soap.Client.prototype._initializeServices (endpoint)

function soap.Client.prototype._invoke (method, args, location, callback, options, extraHeaders)

function soap.Client.prototype._isSequenceRequired (methodName)

function soap.Client.prototype._setSequenceArgs (argsScheme, args)

function soap.Client.prototype.addBodyAttribute (bodyAttribute, name, namespace, xmlns)

function soap.Client.prototype.addHttpHeader (name, value)

function soap.Client.prototype.addSoapHeader (soapHeader, name, namespace, xmlns)

function soap.Client.prototype.changeSoapHeader (index, soapHeader, name, namespace, xmlns)

function soap.Client.prototype.clearBodyAttributes ()

function soap.Client.prototype.clearHttpHeaders ()

function soap.Client.prototype.clearSoapHeaders ()

function soap.Client.prototype.describe ()

function soap.Client.prototype.getBodyAttributes ()

function soap.Client.prototype.getHttpHeaders ()

function soap.Client.prototype.getSoapHeaders ()

function soap.Client.prototype.setEndpoint (endpoint)

function soap.Client.prototype.setSOAPAction (SOAPAction)

function soap.Client.prototype.setSecurity (security)

module soap.ClientSSLSecurity

function soap.ClientSSLSecurity (key, cert, ca, defaults)

module soap.ClientSSLSecurity.prototype

function soap.ClientSSLSecurity.prototype.addOptions (options)

function soap.ClientSSLSecurity.prototype.toXML (headers)

module soap.ClientSSLSecurityPFX

function soap.ClientSSLSecurityPFX (pfx, passphrase, defaults)

module soap.ClientSSLSecurityPFX.prototype

function soap.ClientSSLSecurityPFX.prototype.addOptions (options)

function soap.ClientSSLSecurityPFX.prototype.toXML (headers)

module soap.HttpClient

function soap.HttpClient (options)

module soap.HttpClient.prototype

function soap.HttpClient.prototype.buildRequest (rurl, data, exheaders, exoptions)

function soap.HttpClient.prototype.handleResponse (req, res, body)

function soap.HttpClient.prototype.request (rurl, data, callback, exheaders, exoptions)

function soap.HttpClient.prototype.requestStream (rurl, data, exheaders, exoptions)

module soap.Server

function soap.Server (server, path, services, wsdl, options)

function soap.Server.super_ ()

module soap.Server.prototype

function soap.Server.prototype._envelope (body, includeTimestamp)

function soap.Server.prototype._executeMethod (options, req, callback, includeTimestamp)

function soap.Server.prototype._initializeOptions (options)

function soap.Server.prototype._process (input, req, callback)

function soap.Server.prototype._processRequestXml (req, res, xml)

function soap.Server.prototype._requestListener (req, res)

function soap.Server.prototype._sendError (soapFault, callback, includeTimestamp)

function soap.Server.prototype.addSoapHeader (soapHeader, name, namespace, xmlns)

function soap.Server.prototype.changeSoapHeader (index, soapHeader, name, namespace, xmlns)

function soap.Server.prototype.clearSoapHeaders ()

function soap.Server.prototype.getSoapHeaders ()

module soap.WSDL

function soap.WSDL (definition, uri, options)

module soap.WSDL.prototype

function soap.WSDL.prototype._fromServices (services)

function soap.WSDL.prototype._fromXML (xml)

function soap.WSDL.prototype._initializeOptions (options)

function soap.WSDL.prototype._parse (xml)

function soap.WSDL.prototype._processNextInclude (includes, callback)

function soap.WSDL.prototype._splitQName (nsName)

function soap.WSDL.prototype._xmlnsMap ()

function soap.WSDL.prototype.describeServices ()

function soap.WSDL.prototype.filterOutIgnoredNameSpace (ns)

function soap.WSDL.prototype.findChildSchemaObject (parameterTypeObj, childName)

function soap.WSDL.prototype.findSchemaObject (nsURI, qname)

function soap.WSDL.prototype.findSchemaType (name, nsURI)

function soap.WSDL.prototype.isIgnoredNameSpace (ns)

function soap.WSDL.prototype.objectToDocumentXML (name, params, nsPrefix, nsURI, type)

function soap.WSDL.prototype.objectToRpcXML (name, params, nsPrefix, nsURI, isParts)

function soap.WSDL.prototype.objectToXML (obj, name, nsPrefix, nsURI, isFirst, xmlnsAttr, schemaObject, nsContext)

function soap.WSDL.prototype.onReady (callback)

function soap.WSDL.prototype.processAttributes (child, nsContext)

function soap.WSDL.prototype.processIncludes (callback)

function soap.WSDL.prototype.toXML ()

function soap.WSDL.prototype.xmlToObject (xml, callback)

module soap.WSSecurity

function soap.WSSecurity (username, password, options)

module soap.WSSecurity.prototype

function soap.WSSecurity.prototype.toXML ()

module soap.WSSecurityCert

function soap.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)

module soap.WSSecurityCert.prototype

function soap.WSSecurityCert.prototype.postProcess (xml, envelopeKey)

module soap.client

function soap.client.Client (wsdl, endpoint, options)

module soap.nscontext

function soap.nscontext ()

module soap.nscontext.prototype

function soap.nscontext.prototype.addNamespace (prefix, nsUri, localOnly)

function soap.nscontext.prototype.declareNamespace (prefix, nsUri)

function soap.nscontext.prototype.getNamespaceURI (prefix, localOnly)

function soap.nscontext.prototype.getPrefix (nsUri, localOnly)

function soap.nscontext.prototype.popContext ()

function soap.nscontext.prototype.pushContext ()

function soap.nscontext.prototype.registerNamespace (nsUri)

module soap.security

function soap.security.BasicAuthSecurity (username, password, defaults)

function soap.security.BearerSecurity (token, defaults)

function soap.security.ClientSSLSecurity (key, cert, ca, defaults)

function soap.security.ClientSSLSecurityPFX (pfx, passphrase, defaults)

function soap.security.WSSecurity (username, password, options)

function soap.security.WSSecurityCert (privatePEM, publicP12PEM, password, encoding)

module soap.server

function soap.server.Server (server, path, services, wsdl, options)

module soap.soap_stub

function soap.soap_stub.createClient (wsdlUrl, options, cb)

function soap.soap_stub.createErroringStub (err)

function soap.soap_stub.createRespondingStub (object, body)

function soap.soap_stub.getStub (aliasOrWsdlUrl)

function soap.soap_stub.registerClient (alias, urlToWsdl, clientStub)

function soap.soap_stub.reset ()

module soap.utils

function soap.utils.findPrefix (xmlnsMapping, nsURI)

function soap.utils.passwordDigest (nonce, created, password)

module soap.wsdl

function soap.wsdl.WSDL (definition, uri, options)

function soap.wsdl.open_wsdl (uri, options, callback)

[ this document was created with utility2 ]