EAIWS is the central web service of pCon.basket and provides access to the article list and OFML article data. More details can be found in the EAIWS documentation. EAIWS provides a SOAP-API which can be used directly using .NET, Java or any other language with SOAP support. For JavaScript the eaiws wrapper of the W-CF framework can be used.

3.1 W-CF SOAP wrapper

W-CF is a Javascript framework which provides a wrapper for the EAIWS SOAP-API. pCon.basket provides a special bundle which includes all eaiws and utils modules of W-CF. It can be found in the following location: /libs/wcf/bundles/eaiws.js. A typescript type definition is also provided: /libs/wcf/bundles/eaiws.d.ts.

3.1.2 Using eaiws bundle as global script

The eaiws bundle can be directly embedded using a script tag and accessed using the egrWcf namespace.

<script src="https://integration.basket.pcon-solutions.com/<VERSION>/libs/wcf/bundles/eaiws.js" type="text/javascript"></script>

<script type="text/javascript">
var session = new egrWcf.eaiws.EaiwsSession();
session.connect(...);
</script>

3.1.3 Using eaiws bundle as module

To use the bundle as a module you have to download it and include it in your project.

import { utils, eaiws } from "./YOUR_PATH/eaiws";

var session = new eaiws.EaiwsSession();
session.connect(...);

Generated using TypeDoc