The tests in this library demonstrate connecting to Siebel using the node-soap library. In addition, this library can be used to generate a REST server which forwards requests to Siebel's SOAP API.
npm install node-siebel
npm install -g mochamocha
For more details and background, please see the tutorial.
Create A REST Server
With some minor changes, this should allow you to start a REST server that forwards requests to a node-soap client.
This is from example.js.
// get HTTP modulesvar connect =http =request =server = ;// create a node-soap clientvar soap =join = joinwsdlPath =username = 'SADMIN'password = 'SADMIN'sessionType = 'None';soap;
REST endpoints will be generated based on the WSDL you provide. An example Siebel Order Management WSDL is provided which will generate the following endpoints:
POST /order/:Id => Order/SynchronizeOrderDELETE /order/:Id => Order/DeleteOrderGET /order/:Id => Order/GetOrderByIdPUT /order/:Id => Order/UpdateOrderGET /order => Order/GetOrderPOST /order => Order/InsertOrderanything elsePOST /order/<action> => Order/<action>
Copyright (c) 2014 Pravici, LLC License: MIT