npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@user-office-software/uows_client_generator

v3.1.0

Published

Generates an interface for consuming the User Office Web Service

Downloads

298

Readme

UOWS Client

About

This project aims to make it easier to use the User Office Web Service in projects using TypeScript by abstracting the details of the SOAP implementation from the user and exposing only the functionality of the web service they can use.

Setup

This project requires node.js

To run this tool from anywhere, install it using the following command:

npm i -g @stfc-user-programme/uows_client_generator

How to Run

To run the tool, use the following in the command line:

uows-client-generator <wsdl_url> <output_path>

Alternatively, you can provide the names for the arguments to use them in any order:

uows-client-generator --wsdl=<wsdl_url> --outputPath=<output_path>

Or

uows-client-generator --w=<wsdl_url> --o=<output_path>

There are default values for both parameters:
wsdl_url: 'https://api.facilities.rl.ac.uk/ws/UserOfficeWebService?wsdl'
output_path: './src/UOWSSoapInterface.ts' - this will place it in <path-to-package-installation/src/>

You must be connected to STFC's internal network in order to access the default UOWS WSDL when running the tool.
If you wish to specify an output path you must specify the wsdl url as well.

Running the tool will produce a TypeScript file which you can use to make SOAP calls to the UOWS.

This file defines a class containing the SOAP methods. To use it with the default WSDL (available here), simply import the file to your project:

import UOWSSoapClient from "./UOWSSoapInterface";

Then instantiate the class like so:

const client = new UOWSSoapClient();

You can provide a URL or path to a version of the UOWS you wish to use in the constructor:

const client = new UOWSSoapClient(<WSDL_URL>);

How to Run Tests

To run the tests simply execute the following command in the root of the package directory:

npm run test