Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myazarc/easy2wsdl
WSDL to javascript class with node-soap
https://github.com/myazarc/easy2wsdl
javascript nodejs soap
Last synced: 13 days ago
JSON representation
WSDL to javascript class with node-soap
- Host: GitHub
- URL: https://github.com/myazarc/easy2wsdl
- Owner: myazarc
- License: mit
- Created: 2018-07-12T09:04:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-20T06:57:54.000Z (over 6 years ago)
- Last Synced: 2024-12-02T04:30:39.447Z (22 days ago)
- Topics: javascript, nodejs, soap
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy2wsdl
Create wsdl to javascript class with [node-soap](https://github.com/vpulim/node-soap).# Note
easy2wsdl only run **ES6(import/export)** module (for classes)# Installation
```
npm install --save-dev easy2wsdl
```# Usage
```js
import easy2wsdl from 'easy2wsdl';easy2wsdl.create(url,serviceName).then((res) => {
console.log(res);
});```
# Example
```js
import easy2wsdl from 'easy2wsdl';
const url = 'http://webservices.amazon.com/AWSECommerceService/2013-08-01/AWSECommerceService.wsdl';
const serviceName = 'AWSECommerceService';
easy2wsdl.create(url,serviceName).then((res) => {
console.log(res);
});
```
Save response: awsService.jsinstall node soap
```
npm install --save soap
```Run:
```js
import
{
AWSECommerceService,
ItemSearch,
Shared,
}
from './awsService';const soapService = new AWSECommerceService();
const ItemSearchRequest = new ItemSearch();
ItemSearchRequest.AssociateTag='';
ItemSearchRequest.AWSAccessKeyId='';
ItemSearchRequest.MarketplaceDomain='';
ItemSearchRequest.Request='';const SharedRequest = new Shared();
SharedRequest.Actor = '';
SharedRequest.Brand = '';ItemSearchRequest.Shared=SharedRequest;
ItemSearchRequest.Validate='';
ItemSearchRequest.XMLEscaping='';soapService.init().then((service) => {
return service.ItemSearch(ItemSearchRequest);
}).then((response) => {
console.log(response);
});
```