Giter Site home page Giter Site logo

easy2wsdl's Introduction

easy2wsdl

Create wsdl to javascript class with node-soap.

Note

easy2wsdl only run ES6(import/export) module (for classes)

Installation

npm install --save-dev easy2wsdl

Usage

import easy2wsdl from 'easy2wsdl';

easy2wsdl.create(url,serviceName).then((res) => {
  console.log(res);
});

Example

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.js

install node soap

npm install --save soap

Run:

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);
});

easy2wsdl's People

Contributors

myazarc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.