@msjumbu/app-works v0.0.27
AppWorks Angular startup kit - in the foot steps of schematics
This will read the given WSDL url, generate ts interfaces for the messages and elements in the WSDL. Then generate angular services to call the web services, and a component for the service in angular.
The idea is only code generation, to reduce the time required to write the code required to work with AppWorks webservices.
Anytime this is run, it will always create new code. The existing code cannot be modified by this tool. As stated earlier the intended usage is to reduce the time required to get started with AppWorks webservices.
WSDL parser
The wsdl parser will read the given AppWorks wsdl url, using resolve externals parameter, and create a denormalized flat structures for all the complex types, simple types, elements and messages. This is mainly internal and used by the interface and service generators.
Interface generator
- This will generate interfaces for the messages and elements used by the messages. This generates multiple interfaces based on the elements in the wsdl, and these interfaces are used in other interfaces where they are referenced. This gives the benefits of directly creating and using inner types rather than accessing everything from the message.
- Every time this is run, it will generate a new Interface file, merging with existing interfaces for reusing and reduce clutter is developer responsibility.
Service generator
- This should generate a service file for the given wsdl.
- This will import interfaces generated during the particular execution, changing it to use already generated in previous executions is developer's responsibility.
- This should generate service to call the webservice using angular httpclient and convert to and from xml & json, respecting the wsdl contract.
- The service endpoint must be read from a config file, rather than using from the wsdl.
- The authentication will be both otds & samlart cookie based, if the cookie is not present or if received authentication error, we must raise an error. I need to investigate if this can be some common exception like the java exceptions.
- Abstraction will not be provided by hiding httpclient and xmljs, developer is free to change the generated code.
- The code generator will always create new code and cannot modify existing code.
Component generator
- Create component file using reactive form, template file using clarity design
- Identify update service or use appworks convention to determine update service.
- For updating data, the formgroup raw value will be sent as input.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago