ovotech / apollo-datasource-soap Goto Github PK
View Code? Open in Web Editor NEWSOAPDataSource is responsible for fetching data using soap forApollo GraphQL client
License: Other
SOAPDataSource is responsible for fetching data using soap forApollo GraphQL client
License: Other
For example how to implement this on the AutoTask SOap API (v.1.6) of any open-source API like the calculator
I'm desperate. How can I use this inside Apollo-Server with the AutoTask SOAP API (v.1.6) ?????
Not in Typescript please, I don't know anything about Ts. So I'm even confused if the example provided is for a .ts file or simple Javascript?????
They provide a Node example and I have NO IDEA how can I integrate it to Apollo-Server
autoTask API Github Node example link
Please help. Please :(
There are two extra ) in the only example this library offers.
Please refer to the comments in the code provided.
class MySOAPDataSource extends SOAPDataSource {
async get() {
return await this.callSoapMethod('myFunc', { someArg: 'val' });
}
async getFull() {
return await this.callSoapServiceMethod('myService', 'myPort', 'myFunc', { someArg: 'val' });
}
async rawClientCall() {
const client = await this.getClient();
return await client.myFuncAsync({ something: 'other' });
}
}
// this line below has one extra ) at the end
const client = await createClientAsync('...some.wsdl'));
const ds = new MySOAPDataSource(client);
// or load client async
// this line below has one extra ) at the end
const ds = new MySOAPDataSource(() => createClientAsync('...some.wsdl')));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.