Let's say I created the following very simple custom Bo in cloud Studio:
I want to generate some examples of this bo. My previous practice was to create an editing UI for this custom Bo. Then use these UI to create a Bo instance. This is a time-consuming approach.
There is another easy way to do this: no UI required, but C4C Web Service.
Start the Service Integration Wizard and create a Web service:
Create and read two service operation based on a custom Bo:
Once the Web service is created, it is shown in cloud application studio:
Import the WSDL file for the Web service locally and create a new SOAP UI project based on the file, as follows:
Suppose I want to create a new Bo instance with ID 101,ordername as Jerry Test Bo. In the create request to maintain the contents of these two fields, send a request, get HTTP OK response.
The read request, specifying ID 101, is able to read the Ordername and the Bo's UUID, indicating that the Bo instance was created successfully.
To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:
A way to create test data without UI for C4C custom Bo