Modules@robinpath/soap

@robinpath/soap

0.1.0Public

SOAP web service client, XML-RPC support, WSDL parsing, and envelope building

@robinpath/soap

SOAP web service client, XML-RPC support, WSDL parsing, and envelope building

Category Functions Auth License

Why use this module?

The soap module lets you:

  • Call a SOAP web service
  • Build SOAP XML envelope
  • Parse SOAP XML response
  • Call XML-RPC service
  • Build XML-RPC request

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/soap

Quick Start

No credentials needed — start using it right away:

soap.buildEnvelope "GetUser" {"id": 1}

Available Functions

FunctionDescription
soap.callCall a SOAP web service
soap.buildEnvelopeBuild SOAP XML envelope
soap.parseEnvelopeParse SOAP XML response
soap.xmlRpcCall XML-RPC service
soap.buildXmlRpcBuild XML-RPC request
soap.parseXmlRpcParse XML-RPC response
soap.wsdlFetch and parse WSDL
soap.faultCreate SOAP fault XML
soap.getFaultExtract fault from SOAP XML

Examples

Build SOAP XML envelope

soap.buildEnvelope "GetUser" {"id": 1}

Parse SOAP XML response

soap.parseEnvelope $xml

Call XML-RPC service

soap.xmlRpc "http://example.com/rpc" "system.listMethods" []

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/soap";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  soap.buildEnvelope "GetUser" {"id": 1}
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/soap
Version0.1.0
LicenseMIT
Unpacked Size6.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

web