Martini Generating Services when Consuming SOAP APIs
Martini's graphical interface streamlines the creation of services from SOAP web services. Follow these steps to generate services in Martini from a SOAP WSDL.
Importing a SOAP WSDL
- 
Navigate to the Consume API Interface: In Martini, open the Navigator view. 
- 
Start the Consume API Wizard: Right-click on your target package and select “New | Consume API” from the context menu to launch the Consume an API wizard. 
- 
Complete the Required Values: 
- 
Location: Browse to the directory within your package where you would like your generated services saved. 
- Source: Select WSDL/Web Service
- 
File/URL: Provide the file path or enter the URL for the WSDL. 
- 
Optional Settings: To track events in the Tracker Transaction log, check "Log requests to Tracker." Note that logging to the Tracker may add overhead and consume additional database resources. 
- 
Complete the Import: Click “Consume” to generate services from the WSDL. Martini will generate a service for each operation defined in the API specification, saving them to the specified directory. 
Post-Generation Steps
After generating the services, you may need to take additional steps:
- Customize Generated Services: Review the autogenerated service components and customize queries, mutations, or subscriptions as needed to suit your business logic.
- Test Services: Invoke the generated services and ensure they interact with the SOAP API as expected.
- Secure the Services: If your SOAP API requires authentication, ensure that the necessary headers or tokens are configured in the authentication service inputs.