This is web application which serves as a mock for testing the OSCM SOAP APIs.
-
Run
mvn package
-
Copy /oscm-soap-mock/target/oscm-soap-mock.war into running oscm-core container:
docker cp `<path>/`oscm-soap-mock.war oscm-core:/opt/apache-tomee/apps
-
Open
https://<FQDN>:8081/oscm-soap-mock
- Login to oscm-portal as supplier user having service manager and technology manager roles
- Import the technical service template using this XML file.
- Create a marketable service from this mock service and choose a free price model
- Publish your service offer to your marketplace and activate it
- Find the service in the marketplace portal and subscribe it. Note down the subscription name you have chosen.
The subscription stays in pending and you need to complete it with this mock-up application
Complete the pending subscription as follows.
- Open https://FQDN:8081/oscm-soap-mock
- In the Settings table enter following values and save them:
Base URL : http:oscm-core:8080/
User Name : 10000 (give the user key of your supplier user)
Password : ***** (give the password of your supplier user)
Authentication : BASIC AUTH
- Scroll down the left menu list and select SubscriptionService.completeAsyncSubscription
- Enter following values in the Parameter table. Click 'Execute' to run this SOAP API call.
Subscription Id : the name of the subscription you have chosen
Organization Id : 959c9bf7 (find the organization id in the user profile of your supplier user)
Instance Id : instance_20201030181512 (just any unique ASCII String label)
Base URL : http://oscm-core:8080/oscm-soap-mock
Access Info : https://FQDN:8081/oscm-soap-mock (replace FQDN here)
Login Path : /login
- Back the to marketplace portal, after refershing your subscription it turns into ready state
- Assign the supplier user to the subscription
Now you can use the operations, which are defined in the technical service.
- As supplier user, locate the subscription in the My Subscriptions view and find the operation menu
- Choose the Create Snapshot operation from the drop down
- Choose a server, a comment and execute the operation
- Ready!
Since the operation is mocked, it returns very fast. Longer running actions can be tracked the Operations view, available in the marketplace account menu.
Have fun!