Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Romaniak committed May 11, 2016
1 parent e82751a commit 5f0c5d1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ Then embed the file "./browser-soap-min.js"

<script src="browser-soap-min.js"></script>

Or in es6

import soap from 'browser-soap'

Then you write code such as:

// in global scope:
this.soap.createClient("/ACMEWebService?WSDL", function(err, client) {
this['browser-soap'].createClient("/ACMEWebService?WSDL", function(err, client) {
if (!err)
console.log(client); // all methods are stored in client
});

Or in es6

import soap from 'browser-soap'

soap.createClient("/ACMEWebService?WSDL", function(err, client) {
if (!err)
console.log(client); // all methods are stored in client
});
Expand Down

0 comments on commit 5f0c5d1

Please sign in to comment.